From issues-return-93232-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Tue Mar 6 01:13:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 492B0180608 for ; Tue, 6 Mar 2018 01:13:06 +0100 (CET) Received: (qmail 62218 invoked by uid 500); 6 Mar 2018 00:13:05 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 62207 invoked by uid 99); 6 Mar 2018 00:13:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2018 00:13:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C8FD51804E6 for ; Tue, 6 Mar 2018 00:13:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id gwatmHbCadgC for ; Tue, 6 Mar 2018 00:13:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2E75C5F475 for ; Tue, 6 Mar 2018 00:13:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CAC69E012D for ; Tue, 6 Mar 2018 00:13:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 689E821284 for ; Tue, 6 Mar 2018 00:13:00 +0000 (UTC) Date: Tue, 6 Mar 2018 00:13:00 +0000 (UTC) From: "Brad Zacher (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-13954) NullPointerException when processing result from camera MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13954?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Brad Zacher updated CB-13954: ----------------------------- Description:=20 I have gotten a number of crash reports via the google play console for a n= ull pointer exception (see below for stack). Looking at the source code, it seems to be a problem when attempting to acc= ess the extras from the intent - the problem being that the extras return n= ull (which the code doesn't expect): [https://github.com/apache/cordova-plugin-camera/blob/e36482c7ba1e5dec07f68= a246f3ecde8743d7cd6/src/android/CameraLauncher.java#L516] =C2=A0 {{ java.lang.RuntimeException:=20 at android.app.ActivityThread.deliverResults (ActivityThread.java:4520) at android.app.ActivityThread.handleSendResult (ActivityThread.java:4563) at android.app.ActivityThread.-wrap22 (ActivityThread.java) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1698) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:154) at android.app.ActivityThread.main (ActivityThread.java:6776) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit= .java:1520) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410) Caused by: java.lang.NullPointerException:=20 at org.apache.cordova.camera.CameraLauncher.processResultFromCamera (Came= raLauncher.java:514) at org.apache.cordova.camera.CameraLauncher.onActivityResult (CameraLaunc= her.java:805) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult (CordovaInter= faceImpl.java:152) at org.apache.cordova.CordovaActivity.onActivityResult (CordovaActivity.j= ava:358) at android.app.Activity.dispatchActivityResult (Activity.java:7282) at android.app.ActivityThread.deliverResults (ActivityThread.java:4516) }} =C2=A0 was: I have gotten a number of crash reports via the google play console for a n= ull pointer exception (see below for stack). Looking at the source code, it seems to be a problem when attempting to acc= ess the extras from the intent - the problem being that the extras return n= ull (which the code doesn't expect): https://github.com/apache/cordova-plugin-camera/blob/e36482c7ba1e5dec07f68a= 246f3ecde8743d7cd6/src/android/CameraLauncher.java#L516 =C2=A0 {{*java.lang.RuntimeException:* }} {{ at android.app.ActivityThread.deliverResults (ActivityThread.java:4520)}= } {{ at android.app.ActivityThread.handleSendResult (ActivityThread.java:4563= )}} {{ at android.app.ActivityThread.-wrap22 (ActivityThread.java)}} {{ at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1698)= }} {{ at android.os.Handler.dispatchMessage (Handler.java:102)}} {{ at android.os.Looper.loop (Looper.java:154)}} {{ at android.app.ActivityThread.main (ActivityThread.java:6776)}} {{ at java.lang.reflect.Method.invoke (Native Method)}} {{ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteIni= t.java:1520)}} {{ at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)}} {{*Caused by: java.lang.NullPointerException:* }} {{ at org.apache.cordova.camera.CameraLauncher.processResultFromCamera (Cam= eraLauncher.java:514)}} {{ at org.apache.cordova.camera.CameraLauncher.onActivityResult (CameraLaun= cher.java:805)}} {{ at org.apache.cordova.CordovaInterfaceImpl.onActivityResult (CordovaInte= rfaceImpl.java:152)}} {{ at org.apache.cordova.CordovaActivity.onActivityResult (CordovaActivity.= java:358)}} {{ at android.app.Activity.dispatchActivityResult (Activity.java:7282)}} {{ at android.app.ActivityThread.deliverResults (ActivityThread.java:4516)}= } =C2=A0 > NullPointerException when processing result from camera > ------------------------------------------------------- > > Key: CB-13954 > URL: https://issues.apache.org/jira/browse/CB-13954 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Reporter: Brad Zacher > Priority: Major > > I have gotten a number of crash reports via the google play console for a= null pointer exception (see below for stack). > Looking at the source code, it seems to be a problem when attempting to a= ccess the extras from the intent - the problem being that the extras return= null (which the code doesn't expect): > [https://github.com/apache/cordova-plugin-camera/blob/e36482c7ba1e5dec07f= 68a246f3ecde8743d7cd6/src/android/CameraLauncher.java#L516] > =C2=A0 > {{ > java.lang.RuntimeException:=20 > at android.app.ActivityThread.deliverResults (ActivityThread.java:4520) > at android.app.ActivityThread.handleSendResult (ActivityThread.java:456= 3) > at android.app.ActivityThread.-wrap22 (ActivityThread.java) > at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1698= ) > at android.os.Handler.dispatchMessage (Handler.java:102) > at android.os.Looper.loop (Looper.java:154) > at android.app.ActivityThread.main (ActivityThread.java:6776) > at java.lang.reflect.Method.invoke (Native Method) > at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteIn= it.java:1520) > at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410) > Caused by: java.lang.NullPointerException:=20 > at org.apache.cordova.camera.CameraLauncher.processResultFromCamera (Ca= meraLauncher.java:514) > at org.apache.cordova.camera.CameraLauncher.onActivityResult (CameraLau= ncher.java:805) > at org.apache.cordova.CordovaInterfaceImpl.onActivityResult (CordovaInt= erfaceImpl.java:152) > at org.apache.cordova.CordovaActivity.onActivityResult (CordovaActivity= .java:358) > at android.app.Activity.dispatchActivityResult (Activity.java:7282) > at android.app.ActivityThread.deliverResults (ActivityThread.java:4516) > }} > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org