git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f6abaf
)
patch for npe that occurs for importing Jalview projects where group conservation...
author
jprocter
<Jim Procter>
Tue, 29 Jun 2010 15:21:16 +0000
(15:21 +0000)
committer
jprocter
<Jim Procter>
Tue, 29 Jun 2010 15:21:16 +0000
(15:21 +0000)
src/jalview/analysis/AAFrequency.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/AAFrequency.java
b/src/jalview/analysis/AAFrequency.java
index
bc178df
..
46264d6
100755
(executable)
--- a/
src/jalview/analysis/AAFrequency.java
+++ b/
src/jalview/analysis/AAFrequency.java
@@
-204,6
+204,11
@@
public class AAFrequency
boolean includeAllConsSymbols, char[] alphabet)
{
float tval, value;
+ if (consensus==null || consensus.annotations==null || consensus.annotations.length<width)
+ {
+ // called with a bad alignment annotation row - wait for it to be initialised properly
+ return;
+ }
for (int i = iStart; i < width; i++)
{
value = 0;