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.

  • Application crash after taking a photo
    via Stack Overflow by user292965
    ,
    • 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 android.app.ActivityThread.deliverResults(ActivityThread.java:3758) 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 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: 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) ... 9 more
    No Bugmate found.