Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CC99DE87 for ; Wed, 29 Aug 2012 07:04:10 +0000 (UTC) Received: (qmail 60199 invoked by uid 500); 29 Aug 2012 07:04:09 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 59448 invoked by uid 500); 29 Aug 2012 07:04:08 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 59105 invoked by uid 99); 29 Aug 2012 07:04:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 07:04:07 +0000 Date: Wed, 29 Aug 2012 18:04:07 +1100 (NCT) From: "Quek Seng Siong (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <458726094.10737.1346223847977.JavaMail.jiratomcat@arcas> In-Reply-To: <681201236.10610.1346222049086.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (CB-1295) navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image 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-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Quek Seng Siong updated CB-1295: -------------------------------- Component/s: (was: iOS) Description: I have an android that is created using phonegap 2.0. The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link. {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560) E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote} Is there a way to catch the exception gracefully? How can we ensure that the users only choose local images? was: I have an android and ios app that is created using phonegap 2.0. The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link. {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560) E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote} Is there a way to catch the exception gracefully? How can we ensure that the users only choose local images? > navigator.camera.getPicture() crashes the app when user selects a non-local image or non-image > ---------------------------------------------------------------------------------------------- > > Key: CB-1295 > URL: https://issues.apache.org/jira/browse/CB-1295 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.0.0 > Environment: windows7 > Reporter: Quek Seng Siong > Assignee: Joe Bowser > > I have an android that is created using phonegap 2.0. > The function navigator.camera.getPicture() crashes the application whenever the user select a non-image or picasa image link. > {quote}W/dalvikvm(6631): threadid=1: thread exiting with uncaught exception (group=0x40015560) > E/AndroidRuntime(6631): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { act=android.intent.action.VIEW dat=content://org.openintents.cmfilemanager/mimetype//mnt/sdcard/1.txt }} to activity {com.vintedge.visaapp/com.vintedge.visaapp.MainActivity}: java.lang.NullPointerException{quote} > Is there a way to catch the exception gracefully? > How can we ensure that the users only choose local images? -- 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