From c80420d1cb6b2aac106501d16f4ecffbcd200c0a Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 16 Sep 2005 14:34:57 +0000 Subject: [PATCH] Check image is not null in fast paint --- src/jalview/gui/AnnotationPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.2