From 10c6c64a1ad5f2f4ebd75dc0a4eb3c0dbc9798d5 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 14 Dec 2004 17:37:06 +0000 Subject: [PATCH] Dont try{}catch the findColour method, lets fix this now --- src/jalview/gui/SequenceRenderer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/SequenceRenderer.java b/src/jalview/gui/SequenceRenderer.java index 5c3ee12..e8cf340 100755 --- a/src/jalview/gui/SequenceRenderer.java +++ b/src/jalview/gui/SequenceRenderer.java @@ -27,9 +27,9 @@ public class SequenceRenderer implements RendererI public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i) { Color c = Color.white; - try{ - c = cs.findColour(seq, seq.getSequence(i, i + 1), i, null); - }catch(Exception ex){} + + if (cs != null) + c = cs.findColour(seq, seq.getSequence(i, i + 1), i, av.getConsensus(false)); return c; } -- 1.7.10.2