java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 1889#271204506
    via GitHub by philipwhiuk
    ,
    • java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data (has extras) }} to activity {com.example.gentaliu.photoeditor/com.example.gentaliu.photoeditor.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3840) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3883) at android.app.ActivityThread.access$1700(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1426) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5593) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1477) at android.content.ContentResolver.query(ContentResolver.java:473) at android.content.ContentResolver.query(ContentResolver.java:426) at com.example.ga.photoeditor.MainActivity.getRealPathFromURI(MainActivity.java:96) at com.example.ga.photoeditor.MainActivity.onActivityResult(MainActivity.java:69) at android.app.Activity.dispatchActivityResult(Activity.java:6320) at android.app.ActivityThread.deliverResults(ActivityThread.java:3836)

    Users with the same issue

    Unknown visitor1 times, last one,
    Indri Yunita
    2 times, last one,
    Stefan Braune
    1 times, last one,
    Unknown visitor1 times, last one,