[ 
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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to