no action if supplied colour isnull
authoramwaterhouse <Andrew Waterhouse>
Tue, 15 Feb 2005 10:46:29 +0000 (10:46 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 15 Feb 2005 10:46:29 +0000 (10:46 +0000)
src/jalview/gui/SliderPanel.java

index 79a05de..fca4105 100755 (executable)
@@ -50,6 +50,9 @@ public class SliderPanel extends GSliderPanel
 \r
   public void valueChanged(int i)\r
   {\r
+    if(cs == null)\r
+      return;\r
+\r
     ColourSchemeI toChange = null;\r
     Vector allGroups = null;\r
     int groupIndex = 0;\r