From 702d861516f9f04118c97f36ae4d4e08017dde68 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 15 Nov 2006 15:47:33 +0000 Subject: [PATCH] Check if groupWidth is greater than sequence width --- src/jalview/analysis/AAFrequency.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/analysis/AAFrequency.java b/src/jalview/analysis/AAFrequency.java index f409f8c..5b9a2a4 100755 --- a/src/jalview/analysis/AAFrequency.java +++ b/src/jalview/analysis/AAFrequency.java @@ -53,6 +53,11 @@ public class AAFrequency Hashtable [] reply = new Hashtable[width]; + if(end>=width) + { + end = width-1; + } + calculate(seqs, start, end, reply); return reply; -- 1.7.10.2