Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30AB1D818 for ; Thu, 3 Jan 2013 23:50:13 +0000 (UTC) Received: (qmail 72448 invoked by uid 500); 3 Jan 2013 23:50:12 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 72414 invoked by uid 500); 3 Jan 2013 23:50:12 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 72404 invoked by uid 500); 3 Jan 2013 23:50:12 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 72401 invoked by uid 99); 3 Jan 2013 23:50:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 23:50:12 +0000 Date: Thu, 3 Jan 2013 23:50:12 +0000 (UTC) From: "Joe Bowser (JIRA)" To: callback-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-2093) NullPointerException when attaching image from Gallery that contains spaces in the path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543430#comment-13543430 ] Joe Bowser commented on CB-2093: -------------------------------- Also reproducible on Nexus 7 with stock gallery app. > NullPointerException when attaching image from Gallery that contains spaces in the path > --------------------------------------------------------------------------------------- > > Key: CB-2093 > URL: https://issues.apache.org/jira/browse/CB-2093 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.3.0 > Environment: Tested Cordova 2.3.0 RC2 on Galaxy Nexus 7 with Android 4.2.1 > Reporter: David Omer > Assignee: Joe Bowser > Priority: Critical > > When trying to use camera.getPicture with source=SAVEDPHOTOALBUM and destination=DATA_URL, I'm getting the following error: > 12-20 15:22:56.256: W/dalvikvm(2089): threadid=1: thread exiting with uncaught exception (group=0x4122d930) > 12-20 15:22:56.266: E/AndroidRuntime(2089): FATAL EXCEPTION: main > 12-20 15:22:56.266: E/AndroidRuntime(2089): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=49, result=-1, data=Intent { dat=content://com.google.android.gallery3d.provider/picasa/item/5080798897969217026 flg=0x1 }} to activity {com.steton.mobileauditor/com.steton.mobileauditor.App}: java.lang.NullPointerException > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.app.ActivityThread.deliverResults(ActivityThread.java:3319) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3362) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.app.ActivityThread.access$1100(ActivityThread.java:141) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1282) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.os.Handler.dispatchMessage(Handler.java:99) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.os.Looper.loop(Looper.java:137) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.app.ActivityThread.main(ActivityThread.java:5039) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at java.lang.reflect.Method.invokeNative(Native Method) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at java.lang.reflect.Method.invoke(Method.java:511) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at dalvik.system.NativeStart.main(Native Method) > 12-20 15:22:56.266: E/AndroidRuntime(2089): Caused by: java.lang.NullPointerException > 12-20 15:22:56.266: E/AndroidRuntime(2089): at org.apache.cordova.FileUtils.getMimeType(FileUtils.java:989) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at org.apache.cordova.CameraLauncher.onActivityResult(CameraLauncher.java:397) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:806) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.app.Activity.dispatchActivityResult(Activity.java:5293) > 12-20 15:22:56.266: E/AndroidRuntime(2089): at android.app.ActivityThread.deliverResults(ActivityThread.java:3315) > 12-20 15:22:56.266: E/AndroidRuntime(2089): ... 11 more -- 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