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 E1D4EEE28 for ; Wed, 16 Jan 2013 05:18:18 +0000 (UTC) Received: (qmail 13706 invoked by uid 500); 16 Jan 2013 05:18:18 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 13551 invoked by uid 500); 16 Jan 2013 05:18:17 -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 13480 invoked by uid 500); 16 Jan 2013 05:18:14 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 13444 invoked by uid 99); 16 Jan 2013 05:18:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 05:18:13 +0000 Date: Wed, 16 Jan 2013 05:18:13 +0000 (UTC) From: "David Omer (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=13554754#comment-13554754 ] David Omer commented on CB-2093: -------------------------------- Joe, I can't upload our test because it requires an account on our server and synchronization as well as setup steps that cannot be performed outside the application. I thought I had read that you were able to reproduce the issue and had found that maybe the problem has to do with retrieving the mime type when there is a space in the path. Sent from my iPhone > 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