From: amwaterhouse Date: Mon, 12 Sep 2005 16:56:12 +0000 (+0000) Subject: Null pointers removed X-Git-Tag: Release_2_05b~45 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=83618218fa25c00b54171248156d68f81b5d2e4c;p=jalview.git Null pointers removed --- 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++) {