JAL-2721 no fastPaint if img has been nulled by fontChanged!
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 6 Sep 2017 15:03:47 +0000 (16:03 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 6 Sep 2017 16:48:46 +0000 (17:48 +0100)
src/jalview/gui/SeqCanvas.java

index d434ba8..c0dd1b0 100755 (executable)
@@ -281,7 +281,7 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
    */
   public void fastPaint(int horizontal, int vertical)
   {
-    if (fastpainting || gg == null)
+    if (fastpainting || gg == null || img == null)
     {
       return;
     }