Dont try{}catch the findColour method, lets fix this now
[jalview.git] / src / jalview / gui / SequenceRenderer.java
index 5c3ee12..e8cf340 100755 (executable)
@@ -27,9 +27,9 @@ public class SequenceRenderer implements RendererI
   public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i)\r
   {\r
    Color c = Color.white;\r
-    try{\r
-       c = cs.findColour(seq, seq.getSequence(i, i + 1), i, null);\r
-    }catch(Exception ex){}\r
+\r
+     if (cs != null)\r
+       c = cs.findColour(seq, seq.getSequence(i, i + 1), i, av.getConsensus(false));\r
 \r
     return c;\r
   }\r