(bug android-imagecropview version 1.0.5 ) The application crashes when I choose an image from choose photo option
Project Information
- Repository: https://github.com/naver/android-imagecropview
- Project Name: android-imagecropview
- My Github Account: https://github.com/friendsmobile
- Download the application: https://github.com/naver/android-imagecropview/raw/master/apk/app-release.apk
- My issue : https://github.com/naver/android-imagecropview/issues/46
Expected behavior
When I try to upload any of the pictures selected by the mobile phone gallery, the app should be uploaded and the app should not crash.
Actual behavior
The application crashes when I choose an image from choose photo option
How to reproduce
Download the application
open the Application
click on Choose Photo option and try to upload any picture
Note the Error
Browser/App version: version 1.0.5
Operating system: 6.0
Recording Of The Bug
Logcat
D/AndroidRuntime( 8279): Shutting down VM
E/AndroidRuntime( 8279): FATAL EXCEPTION: main
E/AndroidRuntime( 8279): Process: com.naver.android.helloyako.imagecropsample, PID: 8279
E/AndroidRuntime( 8279): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=99, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:1718 flg=0x1 }} to activity {com.naver.android.helloyako.imagecropsample/com.naver.android.helloyako.imagecropsample.MainActivity}: java.lang.NullPointerException: uriString
E/AndroidRuntime( 8279): at android.app.ActivityThread.deliverResults(ActivityThread.java:4005)
E/AndroidRuntime( 8279): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4048)
E/AndroidRuntime( 8279): at android.app.ActivityThread.access$1400(ActivityThread.java:177)
E/AndroidRuntime( 8279): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1479)
E/AndroidRuntime( 8279): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 8279): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 8279): at android.app.ActivityThread.main(ActivityThread.java:5910)
E/AndroidRuntime( 8279): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 8279): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 8279): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
E/AndroidRuntime( 8279): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
E/AndroidRuntime( 8279): Caused by: java.lang.NullPointerException: uriString
E/AndroidRuntime( 8279): at android.net.Uri$StringUri.(Uri.java:471)
E/AndroidRuntime( 8279): at android.net.Uri$StringUri.(Uri.java:461)
E/AndroidRuntime( 8279): at android.net.Uri.parse(Uri.java:433)
E/AndroidRuntime( 8279): at com.naver.android.helloyako.imagecropsample.MainActivity.onActivityResult(MainActivity.java:108)
E/AndroidRuntime( 8279): at android.app.Activity.dispatchActivityResult(Activity.java:6441)
E/AndroidRuntime( 8279): at android.app.ActivityThread.deliverResults(ActivityThread.java:4001)
E/AndroidRuntime( 8279): ... 10 more
Hi @friendsmobile, thanks for making this contribution
I can see that the contribution has been acknowledged by the PO. I love that you included a logcat but these days we expect a bit of analysis to complement the stack trace. Some explanations on what could have possibly gone wrong
Still a good post. We look forward to more of your reports
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @fego! Keep up the good work!
Hey, @friendsmobile!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!