null pointers removed
[jalview.git] / src / jalview / appletgui / AnnotationPanel.java
index ec5fbc6..f7ba2fe 100755 (executable)
@@ -130,6 +130,9 @@ public class AnnotationPanel
     if (activeRow == -1)\r
     {\r
       AlignmentAnnotation[] aa = av.alignment.getAlignmentAnnotation();\r
+      if(aa ==null)\r
+        return;\r
+\r
       for (int j = 0; j < aa.length; j++)\r
       {\r
         if (aa[j].editable)\r