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

App crashes when payfort package is used. #5

Open
bilalep opened this issue Nov 14, 2022 · 2 comments
Open

App crashes when payfort package is used. #5

bilalep opened this issue Nov 14, 2022 · 2 comments

Comments

@bilalep
Copy link

bilalep commented Nov 14, 2022

Problem:
App crashing when "Allow Google Location History" dialogue pops up.

Even though the exception occurs when a Google Maps package dialogue appears, the stack trace refers to a method in flutter-amazonpaymentservices and when i remove this package the error goes away.

D/AndroidRuntime(32260): Shutting down VM
E/AndroidRuntime(32260): FATAL EXCEPTION: main
E/AndroidRuntime(32260): Process: ae.lml.lml_mobile_app, PID: 32260
E/AndroidRuntime(32260): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=4097, result=-1, data=Intent { (has extras) }} to activity {ae.lml.lml_mobile_app/ae.lml.lml_mobile_app.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.payfort.fortpaymentsdk.callbacks.FortCallBackManager.onActivityResult(int, int, android.content.Intent)' on a null object reference
E/AndroidRuntime(32260):
   at android.app.ActivityThread.deliverResults(ActivityThread.java:4960 undefined)
E/AndroidRuntime(32260):
   at android.app.ActivityThread.handleSendResult(ActivityThread.java:5001 undefined)
E/AndroidRuntime(32260):
   at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51 undefined)
E/AndroidRuntime(32260):
   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135 undefined)
E/AndroidRuntime(32260):
   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95 undefined)
E/AndroidRuntime(32260):
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2047 undefined)
E/AndroidRuntime(32260):
   at android.os.Handler.dispatchMessage(Handler.java:107 undefined)
E/AndroidRuntime(32260):
   at android.os.Looper.loop(Looper.java:224 undefined)
E/AndroidRuntime(32260):
   at android.app.ActivityThread.main(ActivityThread.java:7592 undefined)
E/AndroidRuntime(32260):
   at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(32260):
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539 undefined)
E/AndroidRuntime(32260):
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950 undefined)
E/AndroidRuntime(32260): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.payfort.fortpaymentsdk.callbacks.FortCallBackManager.onActivityResult(int, int, android.content.Intent)' on a null object reference
E/AndroidRuntime(32260):
   at com.amazon.flutter_amazonpaymentservices.FlutterAmazonpaymentservicesPlugin.lambda$onAttachedToActivity$1(FlutterAmazonpaymentservicesPlugin.java:98 undefined)
E/AndroidRuntime(32260):
   at com.amazon.flutter_amazonpaymentservices.FlutterAmazonpaymentservicesPlugin$ExternalSyntheticLambda0.onActivityResult(Unknown Source:0)
E/AndroidRuntime(32260):
   at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEngineConnectionRegistry.java:807 undefined)
E/AndroidRuntime(32260):
   at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(FlutterEngineConnectionRegistry.java:430 undefined)
E/AndroidRuntime(32260):
   at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:811 undefined)
E/AndroidRuntime(32260):
   at io.flutter.embedding.android.FlutterActivity.onActivityResult(FlutterActivity.java:771 undefined)
E/AndroidRuntime(32260):
   at android.app.Activity.dispatchActivityResult(Activity.java:8249 undefined)
E/AndroidRuntime(32260):
   at android.app.ActivityThread.deliverResults(ActivityThread.java:4953 undefined)
E/AndroidRuntime(32260): ... 11 more
I/Process (32260): Sending signal. PID: 32260 SIG: 9
Lost connection to device.
@husnain067
Copy link

@bilalep did you find any solutions for it?

@jawadincode
Copy link

Any Solution ? Android app is crashing even after payment success.

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

3 participants