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

[ANDROID] Crash app when cancel crop #510

Open
anhdo9797 opened this issue Jul 18, 2024 · 0 comments
Open

[ANDROID] Crash app when cancel crop #510

anhdo9797 opened this issue Jul 18, 2024 · 0 comments

Comments

@anhdo9797
Copy link

Every time I pressed the close button when snipping the screen, the app crashed with the following error:

E/AndroidRuntime(23450): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=69, result=0, data=null} to activity {***.app/***.MainActivity}: java.lang.NullPointerException: Parameter specified as non-null is null: method ***.MainActivity.onActivityResult, parameter data
E/AndroidRuntime(23450): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4633)
E/AndroidRuntime(23450): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4675)
E/AndroidRuntime(23450): 	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
E/AndroidRuntime(23450): 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime(23450): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime(23450): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1950)
E/AndroidRuntime(23450): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(23450): 	at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime(23450): 	at android.app.ActivityThread.main(ActivityThread.java:7073)
E/AndroidRuntime(23450): 	at java.lang.reflect.Method.invoke(Native Method)

My dependencies:

  • Flutter 3.19.6
  • image_cropper: "7.1.0"
Screenshot 2024-07-18 at 9 55 53 AM
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

1 participant