cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trevor Huey (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-9477) Android app crashes on image capture
Date Mon, 10 Aug 2015 23:08:45 GMT
Trevor Huey created CB-9477:
-------------------------------

             Summary: Android app crashes on image capture
                 Key: CB-9477
                 URL: https://issues.apache.org/jira/browse/CB-9477
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Camera
    Affects Versions: 5.1.1
         Environment: Android
            Reporter: Trevor Huey


When doing a camera capture, after selecting okay on the image, the app crashes and it throws
this error in the logcat.

08-10 16:52:34.488  28126-28126/com.joltup.joltmobile E/AndroidRuntime﹕ FATAL EXCEPTION:
main
    Process: com.joltup.joltmobile, PID: 28126
    java.lang.RuntimeException: Unable to resume activity {com.joltup.joltmobile/com.joltup.joltmobile.MainActivity}:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=34, result=-1,
data=null} to activity {com.joltup.joltmobile/com.joltup.joltmobile.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=34, result=-1, data=null} to activity {com.joltup.joltmobile/com.joltup.joltmobile.MainActivity}:
java.lang.NullPointerException
            at android.app.ActivityThread.deliverResults(ActivityThread.java:3432)
            at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788)
            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.NullPointerException
            at org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:445)
            at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:674)
            at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120)
            at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:320)
            at android.app.Activity.dispatchActivityResult(Activity.java:5446)
            at android.app.ActivityThread.deliverResults(ActivityThread.java:3428)
            at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788)
            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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message