From: kiramt Date: Mon, 31 Jul 2017 09:23:04 +0000 (+0200) Subject: JAL-2634 Added null test for graphics in AnnotationPanel::fastPaint X-Git-Tag: Release_2_10_3b1~132^2~10^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5899c15a3f3de3ab562970cf645c2b29b9ed7079;p=jalview.git JAL-2634 Added null test for graphics in AnnotationPanel::fastPaint --- 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) {