From: gmungoc Date: Wed, 6 Sep 2017 15:03:47 +0000 (+0100) Subject: JAL-2721 no fastPaint if img has been nulled by fontChanged! X-Git-Tag: Release_2_11_0~249^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-2721fastPaintNPE;p=jalview.git JAL-2721 no fastPaint if img has been nulled by fontChanged! --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 191a7d8..4e896a0 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -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; }