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

GitHub | Ronnnn | 3 months ago
  1. 0

    Android crash: CallbackContext is null

    GitHub | 3 months ago | Ronnnn
    java.lang.RuntimeException: Unable to resume activity {com.myapp.android/com.myapp.android.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=0, data=null} to activity {com.myapp.android/com.myapp.android.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(org.json.JSONArray)' on a null object reference
  2. 0

    App crashes on Android 5.0.1

    GitHub | 3 months ago | kristiyandobrev
    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
  3. 0

    GitHub comment 156#227296691

    GitHub | 5 months ago | Fogrunner
    java.lang.RuntimeException: Unable to resume activity {kr.co.paransoft.edit/kr.co.paransoft.edit.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=0, data=null} to activity {kr.co.paransoft.edit/kr.co.paransoft.edit.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error onNewIntent on Android while application is running

    GitHub | 8 months ago | Morathil
    java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(org.json.JSONObject)' on a null object reference
  6. 0

    I'm getting multiple crash reports via google play. I'm unable to replicate myself but I think it could be related to CyanogenMod. Android 5.0 (LG Leon 4G LTE (c50)) {code} java.lang.RuntimeException: Unable to resume activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://com.google.android.apps.photos.contentprovider/0/1/https://lh3.googleusercontent.com/xZgV-3YvXmuR6W7uEAJOLuHHSI0nrkzZTGESgcggVi_ovpv8qkc=s0-d/ACTUAL flg=0x1 (has clip) }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3040) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3071) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2410) at android.app.ActivityThread.access$800(ActivityThread.java:155) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5376) 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:908) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://com.google.android.apps.photos.contentprovider/0/1/https://lh3.googleusercontent.com/xZgV-3YvXmuR6W7uEAJOLuHHSI0nrkzZTGESgcggVi_ovpv8qkc=s0-d/ACTUAL flg=0x1 (has clip) }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3645) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3026) ... 11 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:613) at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:695) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:321) at android.app.Activity.dispatchActivityResult(Activity.java:6223) at android.app.ActivityThread.deliverResults(ActivityThread.java:3641) ... 12 more {code} Android 4.4 (Moto G) {code} java.lang.RuntimeException: Unable to resume activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://media/external/images/media/31135 flg=0x1 }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2812) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2845) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2262) at android.app.ActivityThread.access$800(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5086) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://media/external/images/media/31135 flg=0x1 }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.deliverResults(ActivityThread.java:3432) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788) ... 12 more Caused by: java.lang.NullPointerException at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:613) at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:695) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:321) at android.app.Activity.dispatchActivityResult(Activity.java:5446) at android.app.ActivityThread.deliverResults(ActivityThread.java:3428) ... 13 more {code} Android 5.0 (HTC One) {code} java.lang.RuntimeException: Unable to resume activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content: flg=0x1 }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3224) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3257) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2479) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1359) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:155) at android.app.ActivityThread.main(ActivityThread.java:5696) 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:1028) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content: flg=0x1 }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3881) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3197) ... 11 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:613) at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:695) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:321) at android.app.Activity.dispatchActivityResult(Activity.java:6160) at android.app.ActivityThread.deliverResults(ActivityThread.java:3877) ... 12 more {code} Android 5.1 (OnePlus One) - Cyanogen {code} java.lang.RuntimeException: Unable to resume activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:32282 flg=0x1 }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3017) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3048) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2423) at android.app.ActivityThread.access$900(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5293) 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:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:32282 flg=0x1 }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3605) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3003) ... 11 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:613) at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:695) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:321) at android.app.Activity.dispatchActivityResult(Activity.java:6192) at android.app.ActivityThread.deliverResults(ActivityThread.java:3601) ... 12 more {code}

    Apache's JIRA Issue Tracker | 1 year ago | Mark Harding
    java.lang.RuntimeException: Unable to resume activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:32282 flg=0x1 }} to activity {com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(java.lang.String)' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.synconset
      ImagePicker.onActivityResult
      1. com.synconset.ImagePicker.onActivityResult(ImagePicker.java:135)
      1 frame
    3. org.apache.cordova
      CordovaActivity.onActivityResult
      1. org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:151)
      2. org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:348)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:6632)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:4192)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3513)
      4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3558)
      5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2878)
      6. android.app.ActivityThread.access$900(ActivityThread.java:181)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:145)
      10. android.app.ActivityThread.main(ActivityThread.java:6145)
      10 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
      2 frames