Check image is not null in fast paint
authoramwaterhouse <Andrew Waterhouse>
Fri, 16 Sep 2005 14:34:57 +0000 (14:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 16 Sep 2005 14:34:57 +0000 (14:34 +0000)
src/jalview/gui/AnnotationPanel.java

index 5f0d3c8..8a220b8 100755 (executable)
@@ -530,7 +530,7 @@ public class AnnotationPanel extends JPanel implements MouseListener,
       g.setColor(Color.white);\r
       g.fillRect(0, 0, getWidth(), getHeight());\r
 \r
-      if (fastPaint)\r
+      if (fastPaint && image!=null)\r
       {\r
         g.drawImage(image, 0, 0, this);\r
         fastPaint = false;\r