Check if usrCol is null
authoramwaterhouse <Andrew Waterhouse>
Fri, 27 May 2005 09:33:12 +0000 (09:33 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 27 May 2005 09:33:12 +0000 (09:33 +0000)
src/jalview/gui/AlignViewport.java

index a5fd31f..fe03a31 100755 (executable)
@@ -101,7 +101,9 @@ public class AlignViewport
     {\r
       globalColourScheme = ColourSchemeProperty.getColour(alignment, Preferences.defaultColour);\r
       if(globalColourScheme instanceof UserColourScheme)\r
-       globalColourScheme = UserDefinedColours.loadDefaultColours();\r
+      {\r
+        globalColourScheme = UserDefinedColours.loadDefaultColours();\r
+      }\r
       if(globalColourScheme!=null)\r
         globalColourScheme.setConsensus( vconsensus );\r
    }\r