Dont try{}catch the findColour method, lets fix this now
authoramwaterhouse <Andrew Waterhouse>
Tue, 14 Dec 2004 17:37:06 +0000 (17:37 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 14 Dec 2004 17:37:06 +0000 (17:37 +0000)
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