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:
1d43daa
)
Check on null consensus
author
amwaterhouse
<Andrew Waterhouse>
Tue, 10 Oct 2006 14:08:47 +0000
(14:08 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 10 Oct 2006 14:08:47 +0000
(14:08 +0000)
src/jalview/schemes/PIDColourScheme.java
patch
|
blob
|
history
diff --git
a/src/jalview/schemes/PIDColourScheme.java
b/src/jalview/schemes/PIDColourScheme.java
index
e09745a
..
7f4bebe
100755
(executable)
--- a/
src/jalview/schemes/PIDColourScheme.java
+++ b/
src/jalview/schemes/PIDColourScheme.java
@@
-44,6
+44,11
@@
public class PIDColourScheme
s = String.valueOf(res -= ('a' - 'A'));
\r
}
\r
\r
+ if (consensus == null ||
\r
+ j >= consensus.length)
\r
+ {
\r
+ return Color.white;
\r
+ }
\r
\r
if ( (threshold != 0) && !aboveThreshold(s, j))
\r
{
\r