cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "r yoo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-2302) NullPointerException at org.apache.cordova.AudioPlayer.destroy(AudioPlayer.java:122)
Date Tue, 29 Jan 2013 02:02:15 GMT
r yoo created CB-2302:
-------------------------

             Summary: 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

Mime
View raw message