From 324380dcf86be338c6d556b901d6889ddde97f7e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 28 May 2014 10:31:47 -0700 Subject: [PATCH] altosuilib: Don't try to draw to destroyed map windows Signed-off-by: Keith Packard --- altosuilib/AltosSiteMapImage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }); -- 2.30.2