From 6e5cd0851c4c5361c3204648045a02f7a0fe3c01 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 12 Nov 2010 14:58:15 +0000 Subject: [PATCH] revised logic to avoid NPE --- 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 a7cca2c..01c933a 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -1376,7 +1376,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, } } // draw profile if available - if (aa.annotations[column].value != 0 && renderProfile) + if (renderProfile && aa.annotations[column].value != 0) { int profl[] = getProfileFor(aa, column); int ht = y1, htn = y2 - y1;// aa.graphHeight; -- 1.7.10.2