Open thuan09878 opened 6 years ago
| android.support.v4.content.ContextCompat.checkSelfPermission (ContextCompat.java:439) | agency.tango.materialintroscreen.SlideFragment.hasPermissionsToGrant (SlideFragment.java:154) | agency.tango.materialintroscreen.SlideFragment.hasAnyPermissionsToGrant (SlideFragment.java:95) | agency.tango.materialintroscreen.listeners.MessageButtonBehaviourOnPageSelected.pageSelected (MessageButtonBehaviourOnPageSelected.java:30) | agency.tango.materialintroscreen.MaterialIntroActivity$1.run (MaterialIntroActivity.java:113) | android.os.Handler.handleCallback (Handler.java:739) | com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
I don't know where in my code cause this problem, this is the message i got from fabric. Can you tell me how to fix this?
I faced this same issue. The fix for this is explained here - https://stackoverflow.com/questions/37322645/nullpointerexception-when-trying-to-check-permissions
Fatal Exception: java.lang.NullPointerExceptionAttempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference
| android.support.v4.content.ContextCompat.checkSelfPermission (ContextCompat.java:439) | agency.tango.materialintroscreen.SlideFragment.hasPermissionsToGrant (SlideFragment.java:154) | agency.tango.materialintroscreen.SlideFragment.hasAnyPermissionsToGrant (SlideFragment.java:95) | agency.tango.materialintroscreen.listeners.MessageButtonBehaviourOnPageSelected.pageSelected (MessageButtonBehaviourOnPageSelected.java:30) | agency.tango.materialintroscreen.MaterialIntroActivity$1.run (MaterialIntroActivity.java:113) | android.os.Handler.handleCallback (Handler.java:739) | com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
I don't know where in my code cause this problem, this is the message i got from fabric. Can you tell me how to fix this?