java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3453, result=-1, data=null} to activity {com.pantoninc.piV1/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onActivityResult failed TypeError: Cannot read property 'getWidth' of null File: "/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js, line: 53, column: 90 StackTrace: Frame: function:'appModule_1.android.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js', line: 53, column: 91 Frame: function:'ActivityCallbacksImplementation.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/frame.js', line: 769, column: 13 Frame: function:'NativeScriptActivity.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/activity.js', line: 33, column: 25

GitHub | Daxito | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot read property 'getWidth' of null when saveToGallery=true

    GitHub | 10 months ago | Daxito
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3453, result=-1, data=null} to activity {com.pantoninc.piV1/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onActivityResult failed TypeError: Cannot read property 'getWidth' of null File: "/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js, line: 53, column: 90 StackTrace: Frame: function:'appModule_1.android.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js', line: 53, column: 91 Frame: function:'ActivityCallbacksImplementation.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/frame.js', line: 769, column: 13 Frame: function:'NativeScriptActivity.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/activity.js', line: 33, column: 25

    Root Cause Analysis

    1. com.tns.NativeScriptException

      Calling js method onActivityResult failed TypeError: Cannot read property 'getWidth' of null File: "/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js, line: 53, column: 90 StackTrace: Frame: function:'appModule_1.android.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js', line: 53, column: 91 Frame: function:'ActivityCallbacksImplementation.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/frame.js', line: 769, column: 13 Frame: function:'NativeScriptActivity.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/activity.js', line: 33, column: 25

      at com.tns.Runtime.callJSMethodNative()
    2. com.tns
      NativeScriptActivity.onActivityResult
      1. com.tns.Runtime.callJSMethodNative(Native Method)
      2. com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
      3. com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
      4. com.tns.Runtime.callJSMethod(Runtime.java:712)
      5. com.tns.Runtime.callJSMethod(Runtime.java:693)
      6. com.tns.Runtime.callJSMethod(Runtime.java:683)
      7. com.tns.NativeScriptActivity.onActivityResult(NativeScriptActivity.java:69)
      7 frames
    3. Android Platform
      ActivityThread.deliverResults
      1. android.app.Activity.dispatchActivityResult(Activity.java:7137)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:4916)
      2 frames