git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix occasional arrayIndexOutOfBounds when sequences in subgroup are shorter than...
[jalview.git]
/
src
/
jalview
/
analysis
/
AAFrequency.java
diff --git
a/src/jalview/analysis/AAFrequency.java
b/src/jalview/analysis/AAFrequency.java
index
46264d6
..
8fd60c4
100755
(executable)
--- a/
src/jalview/analysis/AAFrequency.java
+++ b/
src/jalview/analysis/AAFrequency.java
@@
-211,6
+211,11
@@
public class AAFrequency
}
for (int i = iStart; i < width; i++)
{
+ if (i>=hconsensus.length) {
+ // happens if sequences calculated over were shorter than alignment width
+ consensus.annotations[i]=null;
+ continue;
+ }
value = 0;
if (ignoreGapsInConsensusCalculation)
{