java.lang.RuntimeException

Failure delivering result ResultInfo{who=android:fragment:0, request=2, result=-1, data=null} to activity {com.example.cosmin.kdocscanner/com.scanlibrary.ScanActivity}: java.lang.NullPointerException: uriString

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web77

  • via Stack Overflow by user3655773
    ,
  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=2, result=-1, data=null} to activity {com.example.cosmin.kdocscanner/com.scanlibrary.ScanActivity}: java.lang.NullPointerException: uriString at android.app.ActivityThread.deliverResults(ActivityThread.java:3742) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3785) at android.app.ActivityThread.access$1400(ActivityThread.java:157) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5525) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) Caused by: java.lang.NullPointerException: uriString at android.net.Uri$StringUri.<init>(Uri.java:475) at android.net.Uri$StringUri.<init>(Uri.java:465) at android.net.Uri.parse(Uri.java:437) at com.scanlibrary.Utils.getUri(Utils.java:24) at com.scanlibrary.PickImageFragment.postImagePick(PickImageFragment.java:146) at com.scanlibrary.PickImageFragment.onActivityResult(PickImageFragment.java:141) at android.app.Activity.dispatchActivityResult(Activity.java:6487) at android.app.ActivityThread.deliverResults(ActivityThread.java:3738) ... 9 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Indri YunitaIndri Yunita
    5 times, last one
    mukkymukky
    6 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    14 more bugmates