From 725d3b370f548794f3af6d65d6736f308ae27e28 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Sat, 16 Apr 2005 15:36:30 +0000 Subject: [PATCH] check if colourscheme is null --- src/jalview/gui/AlignFrame.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index c12cf09..80f16a3 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -808,8 +808,9 @@ public class AlignFrame extends GAlignFrame else { // MUST NOTIFY THE COLOURSCHEME OF CONSENSUS! - cs.setConsensus( viewport.vconsensus ); - viewport.setGlobalColourScheme(cs); + if (cs != null) + cs.setConsensus(viewport.vconsensus); + viewport.setGlobalColourScheme(cs); } -- 1.7.10.2