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:
@@ -144,6 +144,11 @@ public class TileFringer
|
|||||||
QuickSort.sort(fringers);
|
QuickSort.sort(fringers);
|
||||||
|
|
||||||
BufferedImage source = _isrc.getTileSource(baseType);
|
BufferedImage source = _isrc.getTileSource(baseType);
|
||||||
|
if (source == null) {
|
||||||
|
Log.warning("Missing source tile [type=" + baseType + "].");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
BufferedImage ftimg = _isrc.createImage(
|
BufferedImage ftimg = _isrc.createImage(
|
||||||
source.getWidth(), source.getHeight(), Transparency.OPAQUE);
|
source.getWidth(), source.getHeight(), Transparency.OPAQUE);
|
||||||
Graphics2D gfx = (Graphics2D)ftimg.getGraphics();
|
Graphics2D gfx = (Graphics2D)ftimg.getGraphics();
|
||||||
|
|||||||
Reference in New Issue
Block a user