Consensus may already have been removed
authoramwaterhouse <Andrew Waterhouse>
Fri, 3 Nov 2006 15:19:48 +0000 (15:19 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 3 Nov 2006 15:19:48 +0000 (15:19 +0000)
src/jalview/datamodel/Alignment.java

index 713cb0d..4237db8 100755 (executable)
@@ -442,6 +442,9 @@ public class Alignment implements AlignmentI
             aSize = annotations.length;
         }
 
+        if(aSize<1)
+          return;
+
         AlignmentAnnotation[] temp = new AlignmentAnnotation[aSize - 1];
 
         int tIndex = 0;