Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B921C17D03 for ; Tue, 20 Jan 2015 08:22:32 +0000 (UTC) Received: (qmail 45504 invoked by uid 500); 20 Jan 2015 08:22:34 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 45482 invoked by uid 500); 20 Jan 2015 08:22:34 -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 45471 invoked by uid 99); 20 Jan 2015 08:22:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2015 08:22:34 +0000 Date: Tue, 20 Jan 2015 08:22:34 +0000 (UTC) From: "Philip Stiefel (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-2302) NullPointerException at org.apache.cordova.AudioPlayer.destroy(AudioPlayer.java:122) 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-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283581#comment-14283581 ] Philip Stiefel commented on CB-2302: ------------------------------------ Hi, I'm facing the exact same problem. Is there a fix to get rid of that problem? I'm starting a audio stream by pressing a button - when I press it again, another stream starts again and the first one does not stop. When I close the app, I crashes with the error message above. Using: - Android Studio 1.0.2 Build 135.1653844 - Android API Level 21 (Lollipop) - Latest Cordova build fetched via "npm install cordova" - Version 4.2.0 I hope you can help me out and if you need additional information, please let me know. > NullPointerException at org.apache.cordova.AudioPlayer.destroy(AudioPlayer.java:122) > ------------------------------------------------------------------------------------ > > Key: CB-2302 > URL: https://issues.apache.org/jira/browse/CB-2302 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.2.0 > Reporter: r yoo > Assignee: Joe Bowser > > We got this crash report, looks like cordova is messing up when trying to kill the audio player. Not sure which android version this is, sorry. > java.lang.RuntimeException: Unable to destroy activity {our app}: java.lang.NullPointerException > at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3778) > at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3811) > at android.app.ActivityThread.access$1200(ActivityThread.java:151) > at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384) > at android.os.Handler.dispatchMessage(Handler.java:99) > at android.os.Looper.loop(Looper.java:155) > at android.app.ActivityThread.main(ActivityThread.java:5454) > at java.lang.reflect.Method.invokeNative(Native Method) > at java.lang.reflect.Method.invoke(Method.java:511) > at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796) > at dalvik.system.NativeStart.main(Native Method) > Caused by: java.lang.NullPointerException > at org.apache.cordova.AudioPlayer.destroy(AudioPlayer.java:122) > at org.apache.cordova.AudioHandler.onDestroy(AudioHandler.java:128) > at org.apache.cordova.api.PluginManager.onDestroy(PluginManager.java:317) > at org.apache.cordova.CordovaWebView.handleDestroy(CordovaWebView.java:941) > at org.apache.cordova.DroidGap.onDestroy(DroidGap.java:692) > at our app.onDestroy(our app:144) > at android.app.Activity.performDestroy(Activity.java:5255) > at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1135) > at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3761) > ... 11 more > our onDestroy doesn't do anything special, just sets an internally used "isFocused" boolean in the activity to false before handing off to super, so it can't be us right? First and only time I've seen this, our app has been in the wild for months, been using 2.2 for a while. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org