getSequenceStrings() bug fixed.
[jalview.git] / src / jalview / datamodel / AlignmentAnnotation.java
index 04689cd..62de696 100755 (executable)
@@ -1,6 +1,6 @@
 /*
 * Jalview - A Sequence Alignment Editor and Viewer
-* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
@@ -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]);
             }
          }