Closed aniealss closed 6 months ago
Version of flutter_inapp_purchase 5.6.0
Platforms you faced the error (IOS or Android or both?) Android
Bug when updating to latest version affects only a few users
The following is the relevant error log
Fatal Exception: java.lang.RuntimeException Unable to start activity ComponentInfo{app.idous.voice/com.android.billingclient.api.ProxyBillingActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2951) android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3086) android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78) android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108) android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:193) android.app.ActivityThread.main (ActivityThread.java:6718) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
Caused by java.lang.NullPointerException Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference com.android.billingclient.api.ProxyBillingActivity.onCreate (com.android.billingclient:billing@@6.0.1:14) android.app.Activity.performCreate (Activity.java:7144) android.app.Activity.performCreate (Activity.java:7135) android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1271) android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2931) android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3086) android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78) android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108) android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:193) android.app.ActivityThread.main (ActivityThread.java:6718) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.
Version of flutter_inapp_purchase 5.6.0
Platforms you faced the error (IOS or Android or both?) Android
Bug when updating to latest version affects only a few users
The following is the relevant error log
Fatal Exception: java.lang.RuntimeException Unable to start activity ComponentInfo{app.idous.voice/com.android.billingclient.api.ProxyBillingActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2951) android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3086) android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78) android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108) android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:193) android.app.ActivityThread.main (ActivityThread.java:6718) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
Caused by java.lang.NullPointerException Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference com.android.billingclient.api.ProxyBillingActivity.onCreate (com.android.billingclient:billing@@6.0.1:14) android.app.Activity.performCreate (Activity.java:7144) android.app.Activity.performCreate (Activity.java:7135) android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1271) android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2931) android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3086) android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78) android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108) android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:193) android.app.ActivityThread.main (ActivityThread.java:6718) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)