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

NullPointerException in GooglePayHandler.java:30 #196

Closed
asaarnak opened this issue Apr 24, 2023 · 2 comments
Closed

NullPointerException in GooglePayHandler.java:30 #196

asaarnak opened this issue Apr 24, 2023 · 2 comments

Comments

@asaarnak
Copy link
Contributor

Has happened for 3 users since March 28.
We have used latest pay and latest flutter version.
Users had different Android versions 11, 12 and 13.

Caused by java.lang.NullPointerException:
       at io.flutter.plugins.pay_android.GooglePayHandler.onActivityResult(GooglePayHandler.java:30)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEngineConnectionRegistry.java:25)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(FlutterEngineConnectionRegistry.java:13)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:51)
       at io.flutter.embedding.android.FlutterFragment.onActivityResult(FlutterFragment.java:10)
       at io.flutter.embedding.android.FlutterFragmentActivity.onActivityResult(FlutterFragmentActivity.java:5)
       at android.app.Activity.dispatchActivityResult(Activity.java:8471)
       at android.app.ActivityThread.deliverResults(ActivityThread.java:5507)
       at android.app.ActivityThread.handleSendResult(ActivityThread.java:5553)
       at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:54)
       at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
       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:2345)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:233)
       at android.os.Looper.loop(Looper.java:344)
       at android.app.ActivityThread.main(ActivityThread.java:8210)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
@JlUgia
Copy link
Member

JlUgia commented Jul 31, 2023

Good day @asaarnak.
Take a look at the patches release for pay_android and pay. They may resolve the issue.
See #206 for context.

@JlUgia
Copy link
Member

JlUgia commented Aug 2, 2023

I'm closing this issue.
If the NPE persist, feel free to add to #206.

@JlUgia JlUgia closed this as completed Aug 2, 2023
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

2 participants