New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pressing on skip and done button, app crashed showing this error #206
Comments
Note: I'm not part of the library development team. Do you have a Fragment with the name of HomeFragment? These lines point to that:
This tells me where ever you are grabbing app context from, its null:
This library has none of those files btw. As for the skip + done combination, definitely a weird one, but it sounds like you are passing context from the activity implementing this library? |
Yes, I have a fragment named HomeFragment (it is based on support.v4...., not fragmentactivity). I was trying to go to HomeFragment after clicking to the Skip button. |
I understand - what does your intent look like for launching this Fragment; |
The fragment is calling from MainActivity which extends AppcompactActivity. But I am not using this library anymore. |
Oh, in that case, then this issue can be closed, correct? |
yes, it can be closed . Thanks for your help 👍 |
Fatal Main...
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference
at com.enableit.eboimelabd.fragment.HomeFragment$2.onResponse(HomeFragment.java:131)
at com.enableit.eboimelabd.fragment.HomeFragment$2.onResponse(HomeFragment.java:109)
at com.enableit.eboimelabd.connectivity.GsonRequest.deliverResponse(GsonRequest.java:51)
at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
The text was updated successfully, but these errors were encountered: