diff options
| author | Keith Packard <keithp@keithp.com> | 2014-05-28 10:31:47 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-05-28 10:31:47 -0700 |
| commit | 324380dcf86be338c6d556b901d6889ddde97f7e (patch) | |
| tree | 573ab67e80a5257c2ece440487e0705f5a1b60a8 | |
| parent | 1e5807ef428c9a0eb88ed8a3aef40098ab347d80 (diff) | |
altosuilib: Don't try to draw to destroyed map windows
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | altosuilib/AltosSiteMapImage.java | 3 |
1 files changed, 2 insertions, 1 deletions
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; } }); |
