From: amwaterhouse Date: Tue, 14 Dec 2004 17:37:06 +0000 (+0000) Subject: Dont try{}catch the findColour method, lets fix this now X-Git-Tag: Release_2_0~821 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=10c6c64a1ad5f2f4ebd75dc0a4eb3c0dbc9798d5;p=jalview.git Dont try{}catch the findColour method, lets fix this now --- 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; }