You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException:
at android.support.v4.content.ContextCompat.checkSelfPermission (ContextCompat.java:544)
at io.wazo.callkeep.RNCallKeepModule.hasPermissions (RNCallKeepModule.java:513)
at io.wazo.callkeep.RNCallKeepModule.startCall (RNCallKeepModule.java:184)
at java.lang.reflect.Method.invoke (Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:158)
at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:29)
at android.os.Looper.loop (Looper.java:214)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:232)
at java.lang.Thread.run (Thread.java:764)
The text was updated successfully, but these errors were encountered:
Bug report
Description
I haven't encountered this crash myself, but looking at the Google Play developer console for my app I can see the exception occurs semi-frequently.
It looks like it is cause when
ContextCompat.checkSelfPermission(currentActivity, permission);
is called here andcurrentActivity
isnull
.A simple null check will probably do the trick.
Versions
Logs
The text was updated successfully, but these errors were encountered: