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:
Ray Greenwell
2002-11-27 21:41:53 +00:00
parent 709e65f947
commit 0403db5e73
@@ -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;
@@ -510,7 +510,9 @@ public class SoundManager
// if we're currently playing this song..
if (key.equals(current)) {
// stop it
_musicPlayer.stop();
if (_musicPlayer != null) {
_musicPlayer.stop();
}
// remove it from the stack
_musicStack.removeFirst();