Open mkraina opened 4 years ago
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.Activity.startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)' on a null object reference
at com.google.android.gms.common.api.Status.startResolutionForResult(com.google.android.gms:play-services-basement@@17.2.1:17) at com.google.android.gms.common.api.ResolvableApiException.startResolutionForResult(com.google.android.gms:play-services-basement@@17.2.1:3) at com.heanoria.library.reactnative.locationenabler.RNAndroidLocationEnablerModule.onComplete(RNAndroidLocationEnablerModule.java:120) at com.google.android.gms.tasks.zzi.run(com.google.android.gms:play-services-tasks@@17.0.2:4) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at com.google.android.gms.internal.tasks.zzb.dispatchMessage(com.google.android.gms:play-services-tasks@@17.0.2:6) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6644) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Received the same crash in firebase crashlytics.
Device
Brand: SHARP
Model: AQUOS U SHV37
Operating System
Version: 8.0.0
Library version: 1.2.1
I am still facing this issue. Any work around?
Hi, received this error
NullPointerException
RNAndroidLocationEnablerModule
l.120:resolvable.startResolutionForResult(getCurrentActivity(), REQUEST_CHECK_SETTINGS);
is wrapped by trycatch, any idea why this is not handled here?android versions affected: 9, 10