From 83618218fa25c00b54171248156d68f81b5d2e4c Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 12 Sep 2005 16:56:12 +0000 Subject: [PATCH] Null pointers removed --- src/jalview/gui/AnnotationPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index aeb0b9a..f13bc91 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -148,7 +148,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, if (activeRow == -1) { AlignmentAnnotation[] aa = av.alignment.getAlignmentAnnotation(); - + if(aa!=null) for (int j = 0; j < aa.length; j++) { if (aa[j].editable) @@ -178,6 +178,8 @@ public class AnnotationPanel extends JPanel implements MouseListener, if (activeRow == -1) { AlignmentAnnotation[] aa = av.alignment.getAlignmentAnnotation(); + if(aa==null) + return; for (int j = 0; j < aa.length; j++) { -- 1.7.10.2