From: amwaterhouse Date: Thu, 10 Feb 2005 13:26:25 +0000 (+0000) Subject: check that we're not off the end of a sequence X-Git-Tag: Release_2_0~677 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5f7d80cd8b01e051a6175b0ce8db0ad94d73df2f;p=jalview.git check that we're not off the end of a sequence --- diff --git a/src/jalview/schemes/ClustalxColourScheme.java b/src/jalview/schemes/ClustalxColourScheme.java index b28ac76..d4789e6 100755 --- a/src/jalview/schemes/ClustalxColourScheme.java +++ b/src/jalview/schemes/ClustalxColourScheme.java @@ -63,7 +63,10 @@ public class ClustalxColourScheme implements ColourSchemeI seq = ( (SequenceI) seqs.get(j)).getSequence(); for (i = start; i <= end; i++) { - res = ( (Integer) ResidueProperties.aaHash.get(seq.charAt(i) + "")).intValue(); + if(seq.length()-1