From 813abcbd234db6ac665bf43ffc17759f33667015 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 15 Jun 2005 15:04:28 +0000 Subject: [PATCH] check colourscheme is not null --- src/jalview/gui/SliderPanel.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/gui/SliderPanel.java b/src/jalview/gui/SliderPanel.java index f95f84b..1a62fff 100755 --- a/src/jalview/gui/SliderPanel.java +++ b/src/jalview/gui/SliderPanel.java @@ -232,6 +232,11 @@ public class SliderPanel if (allGroups != null) { toChange = ( (SequenceGroup) allGroups.get(groupIndex)).cs; + if(toChange==null) + { + groupIndex--; + continue; + } } if (forConservation) -- 1.7.10.2