cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abel Muiño (JIRA) <j...@apache.org>
Subject [jira] [Created] (CB-3038) Crash caused by NPE when selecting picture from picasa
Date Mon, 15 Apr 2013 17:32:15 GMT
Abel Muiño created CB-3038:
------------------------------

             Summary: Crash caused by NPE when selecting picture from picasa
                 Key: CB-3038
                 URL: https://issues.apache.org/jira/browse/CB-3038
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.6.0
            Reporter: Abel Muiño
            Assignee: Joe Bowser


When the user selects a picture from the galery that comes from Picasa, a NPE is trown and
the application crashes.

The stacktrace that I can get from netcat is:

{noformat}
E/FileUtils(32181): Could get real path for URI string content://com.google.android.gallery3d.provider/picasa/item/5825295055430535810
D/AndroidRuntime(32181): Shutting down VM
W/dalvikvm(32181): threadid=1: thread exiting with uncaught exception (group=0x40cc9930)
E/AndroidRuntime(32181): FATAL EXCEPTION: main
E/AndroidRuntime(32181): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null,
request=19, result=-1, data=Intent { dat=content://com.google.android.gallery3d.provider/picasa/item/5825295055430535810
flg=0x1 }} to activity {com.neupic.reporter/com.neupic.reporter.Reporter}: java.lang.NullPointerException
E/AndroidRuntime(32181):  at android.app.ActivityThread.deliverResults(ActivityThread.java:3319)
E/AndroidRuntime(32181):  at android.app.ActivityThread.handleSendResult(ActivityThread.java:3362)
E/AndroidRuntime(32181):  at android.app.ActivityThread.access$1100(ActivityThread.java:141)
E/AndroidRuntime(32181):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1282)
E/AndroidRuntime(32181):  at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(32181):  at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(32181):  at android.app.ActivityThread.main(ActivityThread.java:5041)
E/AndroidRuntime(32181):  at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(32181):  at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(32181):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime(32181):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime(32181):  at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(32181): Caused by: java.lang.NullPointerException
E/AndroidRuntime(32181):  at org.apache.cordova.FileHelper.getMimeType(FileHelper.java:125)
E/AndroidRuntime(32181):  at org.apache.cordova.CameraLauncher.onActivityResult(CameraLauncher.java:401)
E/AndroidRuntime(32181):  at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:863)
E/AndroidRuntime(32181):  at android.app.Activity.dispatchActivityResult(Activity.java:5293)
E/AndroidRuntime(32181):  at android.app.ActivityThread.deliverResults(ActivityThread.java:3315)
E/AndroidRuntime(32181):  ... 11 more
{noformat}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message