fix for truncation of sequence associated annotation mapped onto alignment
[jalview.git] / src / jalview / datamodel / AlignmentAnnotation.java
index 04689cd..2850eeb 100755 (executable)
@@ -285,13 +285,10 @@ public class AlignmentAnnotation
         for(int i = 0; i < annotations.length; i++)
         {
             seqPos = sequenceRef.findPosition(i + fileOffset);
-            if(seqPos<annotations.length)
+            if (annotations[i] != null)
             {
-              if (annotations[i] != null)
-              {
-                  sequenceMapping.put(new Integer(seqPos),
-                                      annotations[i]);
-              }
+              sequenceMapping.put(new Integer(seqPos),
+                  annotations[i]);
             }
          }