cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12157) audio.startPlaying(null) causes NullPointerException
Date Mon, 27 Mar 2017 05:40:41 GMT

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

ASF GitHub Bot commented on CB-12157:
-------------------------------------

Github user Venkat-TTapp commented on the issue:

    https://github.com/apache/cordova-plugin-media/pull/122
  
    Hi,
    
    I am having the issue in most of my apps, can anyone please let me know how to apply this
fix?
    
    Is this fix applied at plugin level
    
    or 
    
    should I do any code change to apply this fix?
    
    Please let me know, I am not aware of this process.
    
    Regards,
    Venkat


> audio.startPlaying(null) causes NullPointerException
> ----------------------------------------------------
>
>                 Key: CB-12157
>                 URL: https://issues.apache.org/jira/browse/CB-12157
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: Master
>         Environment: android
>            Reporter: Frank Koenigstein
>              Labels: Android
>             Fix For: Master
>
>
> When AudioHandler.resumeAllGainedFocus is called it calls each AudioPlayer with startPlaying(null).
That causes a NullPointerException:
> {code}
> 11-16 16:13:11.071 E/AndroidRuntime(30650): FATAL EXCEPTION: JavaBridge
> 11-16 16:13:11.071 E/AndroidRuntime(30650): java.lang.NullPointerException
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at org.apache.cordova.media.AudioPlayer.readyPlayer(AudioPlayer.java:583)
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at org.apache.cordova.media.AudioPlayer.startPlaying(AudioPlayer.java:299)
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at org.apache.cordova.media.AudioHandler.resumeAllGainedFocus(AudioHandler.java:414)
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at org.apache.cordova.media.AudioHandler$1.onAudioFocusChange(AudioHandler.java:431)
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at android.media.AudioManager$FocusEventHandlerDelegate$1.handleMessage(AudioManager.java:2044)
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at android.os.Handler.dispatchMessage(Handler.java:102)
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at android.os.Looper.loop(Looper.java:136)
> 11-16 16:13:11.071 E/AndroidRuntime(30650):     at android.os.HandlerThread.run(HandlerThread.java:61)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message