From 09429083519f2ed29b9cee54ab3baa9bdbde8655 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 12 Oct 2006 13:18:56 +0000 Subject: [PATCH] Null element checked --- src/jalview/schemes/PIDColourScheme.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/schemes/PIDColourScheme.java b/src/jalview/schemes/PIDColourScheme.java index 7f4bebe..8061e67 100755 --- a/src/jalview/schemes/PIDColourScheme.java +++ b/src/jalview/schemes/PIDColourScheme.java @@ -44,8 +44,9 @@ public class PIDColourScheme s = String.valueOf(res -= ('a' - 'A')); } - if (consensus == null || - j >= consensus.length) + if (consensus == null + || j >= consensus.length + || consensus[j]==null) { return Color.white; } -- 1.7.10.2