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