From: amwaterhouse Date: Fri, 16 Sep 2005 14:34:57 +0000 (+0000) Subject: Check image is not null in fast paint X-Git-Tag: Release_2_06~50 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c80420d1cb6b2aac106501d16f4ecffbcd200c0a;p=jalview.git Check image is not null in fast paint --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 5f0d3c8..8a220b8 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -530,7 +530,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, g.setColor(Color.white); g.fillRect(0, 0, getWidth(), getHeight()); - if (fastPaint) + if (fastPaint && image!=null) { g.drawImage(image, 0, 0, this); fastPaint = false;