From: jprocter Date: Fri, 12 Nov 2010 14:58:44 +0000 (+0000) Subject: patch for JAL-700 X-Git-Tag: Release_2_6_1~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3e5a7e8e9e336b68a97f083e4c2d70001068c537;p=jalview.git patch for JAL-700 --- diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 1a0d82c..42559c6 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -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); }