Check colours not null
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Jun 2005 15:05:22 +0000 (15:05 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Jun 2005 15:05:22 +0000 (15:05 +0000)
src/jalview/gui/TreeCanvas.java

index 73b5b74..a293e28 100755 (executable)
@@ -576,12 +576,10 @@ public class TreeCanvas
                            cs, true, true,\r
                            false, 0, av.alignment.getWidth());\r
 \r
-\r
+          if(sg.cs !=null)\r
            ( (ResidueColourScheme) sg.cs).setThreshold(25);\r
 \r
 \r
-\r
-\r
           if (av.getGlobalColourScheme() instanceof ConservationColourScheme)\r
           {\r
             ConservationColourScheme ccs = (ConservationColourScheme) av.\r