From: amwaterhouse Date: Fri, 11 Feb 2005 11:04:31 +0000 (+0000) Subject: watch out for end of seq in findposition X-Git-Tag: Release_2_0~666 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3479ad05402df852a7758ee89b81ec1fac3301c1;p=jalview.git watch out for end of seq in findposition --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index cf578c0..ebdff92 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -184,10 +184,9 @@ public class Sequence implements SequenceI int j = 0; int pos = start; - while (j < i) + while (j < i && j