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

Android crash #4

Open
bradstiff opened this issue Mar 6, 2021 · 0 comments
Open

Android crash #4

bradstiff opened this issue Mar 6, 2021 · 0 comments

Comments

@bradstiff
Copy link

bradstiff commented Mar 6, 2021

Hi, This package has worked perfectly for most cases, but I have a cases where the app crashed with the following stack trace. Would recommend wrapping with try / catch.

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at android.content.ComponentName.(ComponentName.java:131)
at android.content.Intent.(Intent.java:7162)
at com.google.android.play.core.review.c.launchReviewFlow(:4)
at com.reactlibrary.RnInAppReviewModule$1.onComplete(RnInAppReviewModule.java:39)
at com.google.android.play.core.tasks.a.run(:23)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

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