From 3e5a7e8e9e336b68a97f083e4c2d70001068c537 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 12 Nov 2010 14:58:44 +0000 Subject: [PATCH] patch for JAL-700 --- src/jalview/datamodel/Alignment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.7.10.2