Don't choke if our url is set to null, instead just clear any previous media.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@456 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2008-03-22 02:45:41 +00:00
parent 10b2587fba
commit 9d792434dc
@@ -140,10 +140,12 @@ public class MediaContainer extends Sprite
_url = url; _url = url;
// set up the new media // set up the new media
if (url != null) {
willShowNewMedia(); willShowNewMedia();
showNewMedia(url); showNewMedia(url);
didShowNewMedia(); didShowNewMedia();
} }
}
/** /**
* Configure our media as an instance of the specified class. * Configure our media as an instance of the specified class.