java.lang.RuntimeException: 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

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 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
via GitHub by samratshekhar
, 6 months ago
Failure delivering result ResultInfo{who=null, request=9001, result=0, data=null} to activity {com.qfolio.debug/com.qfolio.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.auth.api.signin.GoogleSignInResult.isSuccess()' on a null object reference
via GitHub by kanerogers
, 9 months ago
Failure delivering result ResultInfo{who=null, request=9001, result=0, data=null} to activity {com.traxi/com.traxi.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.auth.api.signin.GoogleSignInResult.isSuccess()' on a null object reference
via Stack Overflow by user7796820
, 6 months ago
Failure delivering result ResultInfo{who=null, request=65536, result=0, data=null} to activity {com.sample.isample/com.sample.isample.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.auth.api.signin.GoogleSignInResult.isSuccess()' on a null object reference
via GitHub by raphkr
, 1 year ago
Failure delivering result ResultInfo{who=null, request=49463195, result=13274388, data=Intent { cmp=com.evivernappv0/io.card.payment.DataEntryActivity }} to activity {com.evivernappv0/com.evivernappv0.MainActivity}: java.lang.NullPointerException
via Stack Overflow by boom3x
, 2 months ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {ur.mi.android.wgplus05/ur.mi.android.wgplus05.PictureActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder android.view.View.getWindowToken()' on a null object reference
java.lang.RuntimeException: 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
at com.camera.MainActivity.onActivityResult(MainActivity.java:43)
at android.app.Activity.dispatchActivityResult(Activity.java:6463)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3754)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3801)
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:5551)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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