From 5899c15a3f3de3ab562970cf645c2b29b9ed7079 Mon Sep 17 00:00:00 2001 From: kiramt Date: Mon, 31 Jul 2017 11:23:04 +0200 Subject: [PATCH] JAL-2634 Added null test for graphics in AnnotationPanel::fastPaint --- src/jalview/appletgui/AnnotationPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/appletgui/AnnotationPanel.java b/src/jalview/appletgui/AnnotationPanel.java index 39b718d..417bb06 100755 --- a/src/jalview/appletgui/AnnotationPanel.java +++ b/src/jalview/appletgui/AnnotationPanel.java @@ -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) { -- 1.7.10.2