From: Keith Packard Date: Wed, 28 May 2014 17:31:47 +0000 (-0700) Subject: altosuilib: Don't try to draw to destroyed map windows X-Git-Tag: 1.3.2.2~59 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=324380dcf86be338c6d556b901d6889ddde97f7e;ds=sidebyside altosuilib: Don't try to draw to destroyed map windows Signed-off-by: Keith Packard --- diff --git a/altosuilib/AltosSiteMapImage.java b/altosuilib/AltosSiteMapImage.java index ae32418f..f1cfa7c0 100644 --- a/altosuilib/AltosSiteMapImage.java +++ b/altosuilib/AltosSiteMapImage.java @@ -50,7 +50,8 @@ public class AltosSiteMapImage { public void run() { AltosSiteMap.debug_component(tile, file.toString()); Graphics2D g2d = (Graphics2D) tile.getGraphics(); - tile.paint_graphics(g2d, image, serial); + if (g2d != null) + tile.paint_graphics(g2d, image, serial); load_thread = null; } });