You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2013/01/29 19:29:13 UTC

[jira] [Comment Edited] (CB-2302) NullPointerException at org.apache.cordova.AudioPlayer.destroy(AudioPlayer.java:122)

    [ https://issues.apache.org/jira/browse/CB-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13565626#comment-13565626 ] 

Joe Bowser edited comment on CB-2302 at 1/29/13 6:28 PM:
---------------------------------------------------------

Maybe an upgrade to 2.3.0 would resolve this?  That being said, this particular piece of code has been the same since 1.9
                
      was (Author: bowserj):
    Maybe an upgrade to 2.3.0 would resolve this?
                  
> 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 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