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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by user3655773
, 1 year ago
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
via GitHub by Eric-kongkong
, 7 months ago
Failure delivering result ResultInfo{who=null, request=6709, result=-1, data=Intent { (has extras) }} to activity {com.sun3d.culturalShanghaRadio/com.sun3d.culturalShanghaRadio.mvp.view.AddImgActivity}: java.lang.reflect.UndeclaredThrowableException**
via GitHub by hht10333
, 7 months ago
Failure delivering result ResultInfo{who=null, request=1008, result=-1, data=Intent { (has extras) }} to activity {com.example.clepil/com.example.clepil.UI.Mine.CoverActivity}: java.lang.reflect.UndeclaredThrowableException
via GitHub by 920-Text-Editor-User
, 1 year ago
Failure delivering result ResultInfo{who=@android:requestPermissions:, request=2, result=0, data=null} to activity {com.jecelyin.editor.v2/com.jecelyin.editor.v2.ui.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.removeView(android.view.View)' on a null object reference
via GitHub by 920-Text-Editor-User
, 1 year ago
Failure delivering result ResultInfo{who=@android:requestPermissions:, request=2, result=0, data=null} to activity {com.jecelyin.editor.v2/com.jecelyin.editor.v2.ui.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.removeView(android.view.View)' on a null object reference
via Stack Overflow by user292965
, 1 year ago
Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity {com.camera/com.camera.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference
java.lang.NullPointerException: uriString
at android.net.Uri$StringUri.(Uri.java:475)
at android.net.Uri$StringUri.(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)
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 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)

Users with the same issue

Once, 4 months ago
5 times, 9 months ago
6 times, 1 year ago
9 times, 1 year ago
8 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.