britannio / in_app_review

A Flutter plugin for showing the In-App Review/System Rating pop up on Android, IOS, and MacOS. It makes it easy for users to rate your app.
295 stars 76 forks source link

PlayCoreDialogWrapperActivity crash in library version 2.0.9 #124

Open Jithin-Jude opened 4 weeks ago

Jithin-Jude commented 4 weeks ago

Crash hapenning in Pixel 4a Android 12

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mountzoft.gameofzeros/com.google.android.play.core.common.PlayCoreDialogWrapperActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.os.BaseBundle.get(java.lang.String)' on a null object reference
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3635)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:201)
       at android.os.Looper.loop(Looper.java:288)
       at android.app.ActivityThread.main(ActivityThread.java:7839)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
britannio commented 4 weeks ago

That's an odd stack trace. Maybe https://github.com/jamesmontemagno/StoreReviewPlugin/issues/6#issuecomment-703158307 fixes the crash?

Jithin-Jude commented 4 weeks ago

Will try this if the crash happens again. Are you planing to update library?