Must check consensus length if autocalculate off
[jalview.git] / src / jalview / schemes / Blosum62ColourScheme.java
index 6e91e0b..2c0836d 100755 (executable)
@@ -39,7 +39,7 @@ public class Blosum62ColourScheme
     }\r
 \r
 \r
-    if ( (threshold != 0) && !aboveThreshold(s, j))\r
+    if ( j>=consensus.length || (threshold != 0 && !aboveThreshold(s, j) ))\r
     {\r
       return Color.white;\r
     }\r