Skip to content
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

Fatal Exception: java.lang.NullPointerException: context must not be null. #362

Open
zohaib-ahmad1020 opened this issue Feb 19, 2025 · 0 comments

Comments

@zohaib-ahmad1020
Copy link

Fatal Exception: java.lang.NullPointerException: context must not be null.
at com.huawei.hms.utils.Checker.checkNonNull(Checker.java:2)
at com.huawei.hms.api.HuaweiApiAvailabilityImpl.isHuaweiMobileServicesAvailable(HuaweiApiAvailabilityImpl.java:1)
at com.huawei.hms.rn.safetydetect.huaweiapi.HuaweiApiService.isHuaweiMobileServicesAvailable(HuaweiApiService.java:30)
at com.huawei.hms.rn.safetydetect.huaweiapi.HuaweiApiModule.isHuaweiMobileServicesAvailable(HuaweiApiModule.java:42)
at java.lang.reflect.Method.invoke(Method.java)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
at com.facebook.jni.NativeRunnable.run(NativeRunnable.java)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:236)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
at java.lang.Thread.run(Thread.java:923)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant