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

index 191a7d8..4e896a0 100755 (executable)
@@ -283,7 +283,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;
     }