fix for null annotations
authorjprocter <Jim Procter>
Thu, 26 Apr 2007 10:35:43 +0000 (10:35 +0000)
committerjprocter <Jim Procter>
Thu, 26 Apr 2007 10:35:43 +0000 (10:35 +0000)
src/jalview/datamodel/AlignmentAnnotation.java

index 04eab48..d3d25d9 100755 (executable)
@@ -354,6 +354,8 @@ Loading...
    */
   public void restrict(int startRes, int endRes)
   {
+    if (annotations==null)
+      return;
     Annotation[] temp = new Annotation[endRes-startRes+1];
     if (startRes<annotations.length)
     {