Return null in getImageSource() if the specified bundle can't be found, as

was documented, so that callers can do things like fall back to trying the
classpath rather than having the previously-thrown IOException circumvent
the rest of their antics.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1826 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-10-25 00:44:16 +00:00
parent dd912c3d7d
commit beca9850aa
@@ -1,5 +1,5 @@
//
// $Id: ImageManager.java,v 1.22 2002/10/17 17:42:20 mdb Exp $
// $Id: ImageManager.java,v 1.23 2002/10/25 00:44:16 shaper Exp $
package com.threerings.media;
@@ -192,8 +192,7 @@ public class ImageManager
// grab the resource bundles in the specified resource set
ResourceBundle[] bundles = _rmgr.getResourceSet(rset);
if (bundles == null) {
throw new IOException("No such resource set " +
"[rset=" + rset + ", path=" + path + "].");
return null;
}
// look for the image in any of the bundles