LeonidVeremchuk / flutter-google-pay

Flutter Google Pay
Other
14 stars 18 forks source link

Null Pointer #9

Open d3roch4 opened 4 years ago

d3roch4 commented 4 years ago

java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference E/AndroidRuntime( 7414): at android.app.ActivityThread.deliverResults(ActivityThread.java:4845) E/AndroidRuntime( 7414): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4886) E/AndroidRuntime( 7414): at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) E/AndroidRuntime( 7414): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) E/AndroidRuntime( 7414): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) E/AndroidRuntime( 7414): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) E/AndroidRuntime( 7414): at android.os.Handler.dispatchMessage(Handler.java:107) E/AndroidRuntime( 7414): at android.os.Looper.loop(Looper.java:214) E/AndroidRuntime( 7414): at android.app.ActivityThread.main(ActivityThread.java:7356) E/AndroidRuntime( 7414): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 7414): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) E/AndroidRuntime( 7414): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) E/AndroidRuntime( 7414): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference E/AndroidRuntime( 7414): at snail.app.flutter.google.pay.FlutterGooglePayPlugin.callToDartOnPaymentSuccess(FlutterGooglePayPlugin.java:126) E/AndroidRuntime( 7414): at snail.app.flutter.google.pay.FlutterGooglePayPlugin.onActivityResult(FlutterGooglePayPlugin.java:291) E/AndroidRuntime( 7414): at io.flutter.embedding.engine.FlutterEnginePluginRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEnginePluginRegistry.java:634) E/AndroidRuntime( 7414): at io.flutter.embedding.engine.FlutterEnginePluginRegistry.onActivityResult(FlutterEnginePluginRegistry.java:367) E/AndroidRuntime( 7414): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:546) E/AndroidRuntime( 7414): at io.flutter.embedding.android.FlutterActivity.onActivityResult(FlutterActivity.java:594) E/AndroidRuntime( 7414): at android.app.Activity.dispatchActivityResult(Activity.java:8110) E/AndroidRuntime( 7414): at android.app.ActivityThread.deliverResults(ActivityThread.java:4838) E/AndroidRuntime( 7414): ... 11 more I/Process ( 7414): Sending signal. PID: 7414 SIG: 9 Lost connection to device.