catch NPE. A song can be the top song on the stack and not be playing
if musicvolume is 0. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2001 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SoundManager.java,v 1.33 2002/11/27 00:12:14 ray Exp $
|
// $Id: SoundManager.java,v 1.34 2002/11/27 21:41:53 ray Exp $
|
||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
@@ -510,7 +510,9 @@ public class SoundManager
|
|||||||
// if we're currently playing this song..
|
// if we're currently playing this song..
|
||||||
if (key.equals(current)) {
|
if (key.equals(current)) {
|
||||||
// stop it
|
// stop it
|
||||||
_musicPlayer.stop();
|
if (_musicPlayer != null) {
|
||||||
|
_musicPlayer.stop();
|
||||||
|
}
|
||||||
|
|
||||||
// remove it from the stack
|
// remove it from the stack
|
||||||
_musicStack.removeFirst();
|
_musicStack.removeFirst();
|
||||||
|
|||||||
Reference in New Issue
Block a user