Null element checked
authoramwaterhouse <Andrew Waterhouse>
Thu, 12 Oct 2006 13:18:56 +0000 (13:18 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 12 Oct 2006 13:18:56 +0000 (13:18 +0000)
src/jalview/schemes/PIDColourScheme.java

index 7f4bebe..8061e67 100755 (executable)
@@ -44,8 +44,9 @@ public class PIDColourScheme
       s = String.valueOf(res -= ('a' - 'A'));\r
     }\r
 \r
-    if (consensus == null ||\r
-        j >= consensus.length)\r
+    if (consensus == null\r
+        || j >= consensus.length\r
+        || consensus[j]==null)\r
     {\r
       return Color.white;\r
     }\r