patch for JAL-700
authorjprocter <Jim Procter>
Fri, 12 Nov 2010 14:58:44 +0000 (14:58 +0000)
committerjprocter <Jim Procter>
Fri, 12 Nov 2010 14:58:44 +0000 (14:58 +0000)
src/jalview/datamodel/Alignment.java

index 1a0d82c..42559c6 100755 (executable)
@@ -143,7 +143,7 @@ public class Alignment implements AlignmentI
    */
   public SequenceI getSequenceAt(int i)
   {
-    if (i < sequences.size())
+    if (i>-1 && i < sequences.size())
     {
       return (SequenceI) sequences.elementAt(i);
     }