check colourscheme is not null
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Jun 2005 15:04:28 +0000 (15:04 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Jun 2005 15:04:28 +0000 (15:04 +0000)
src/jalview/gui/SliderPanel.java

index f95f84b..1a62fff 100755 (executable)
@@ -232,6 +232,11 @@ public class SliderPanel
       if (allGroups != null)\r
       {\r
         toChange = ( (SequenceGroup) allGroups.get(groupIndex)).cs;\r
+        if(toChange==null)\r
+        {\r
+          groupIndex--;\r
+          continue;\r
+        }\r
       }\r
 \r
       if (forConservation)\r