java.lang.RuntimeException

Unable to resume activity {com.test.timereg/com.test.timereg.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=Intent { (has extras) }} to activity {com.test.timereg/com.test.timereg.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(org.json.JSONArray)' on a null object reference

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 web3

  • via GitHub by kristiyandobrev
    ,
  • via GitHub by Fogrunner
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to resume activity {com.test.timereg/com.test.timereg.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=Intent { (has extras) }} to activity {com.test.timereg/com.test.timereg.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(org.json.JSONArray)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3192) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3223) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471) at android.app.ActivityThread.access$1200(ActivityThread.java:152) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5538) 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.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=Intent { (has extras) }} to activity {com.test.timereg/com.test.timereg.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(org.json.JSONArray)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3790) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3164) ... 11 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(org.json.JSONArray)' on a null object reference at com.synconset.ImagePicker.onActivityResult(ImagePicker.java:61) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:153) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:348) at android.app.Activity.dispatchActivityResult(Activity.java:6238) at android.app.ActivityThread.deliverResults(ActivityThread.java:3786) ... 12 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

    We couldn't find other users who have seen this exception.