JAL-2634 Added null test for graphics in AnnotationPanel::fastPaint
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 31 Jul 2017 09:23:04 +0000 (11:23 +0200)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 31 Jul 2017 09:23:04 +0000 (11:23 +0200)
src/jalview/appletgui/AnnotationPanel.java

index 39b718d..417bb06 100755 (executable)
@@ -634,7 +634,7 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI,
 
   public void fastPaint(int horizontal)
   {
-    if (horizontal == 0
+    if (horizontal == 0 || gg == null
             || av.getAlignment().getAlignmentAnnotation() == null
             || av.getAlignment().getAlignmentAnnotation().length < 1)
     {