null pointer bugfix
authorjprocter <Jim Procter>
Fri, 30 Nov 2007 13:55:15 +0000 (13:55 +0000)
committerjprocter <Jim Procter>
Fri, 30 Nov 2007 13:55:15 +0000 (13:55 +0000)
src/jalview/datamodel/AlignmentAnnotation.java

index b59417a..8cfe728 100755 (executable)
@@ -357,6 +357,11 @@ Loading...
    */
   public void restrict(int startRes, int endRes)
   {
+    if (annotations==null)
+    {
+      // non-positional
+      return;
+    }
     if (startRes<0)
       startRes=0;
     if (startRes>=annotations.length)