Fail gracefully if we're missing a tile source image.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3634 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-06-28 21:36:45 +00:00
parent ced6c5b826
commit dd3bc4f8e7
@@ -144,6 +144,11 @@ public class TileFringer
QuickSort.sort(fringers);
BufferedImage source = _isrc.getTileSource(baseType);
if (source == null) {
Log.warning("Missing source tile [type=" + baseType + "].");
return null;
}
BufferedImage ftimg = _isrc.createImage(
source.getWidth(), source.getHeight(), Transparency.OPAQUE);
Graphics2D gfx = (Graphics2D)ftimg.getGraphics();