- if(groups[i].getColour().startsWith("ucs"))\r
- cs = GetUserColourScheme(jms,groups[i].getColour());\r
- else\r
- cs = ColourSchemeProperty.getColour(al, groups[i].getColour() );\r
-\r
- if (cs instanceof ResidueColourScheme)\r
- ( (ResidueColourScheme) cs).setThreshold(groups[i].getPidThreshold());\r
- else if (cs instanceof ScoreColourScheme)\r
- ( (ScoreColourScheme) cs).setThreshold(groups[i].getPidThreshold());\r
+ if(groups[i].getColour()!=null)\r
+ {\r
+ if (groups[i].getColour().startsWith("ucs"))\r
+ cs = GetUserColourScheme(jms, groups[i].getColour());\r
+ else\r
+ cs = ColourSchemeProperty.getColour(al, groups[i].getColour());\r
+\r
+ if (cs instanceof ResidueColourScheme)\r
+ ( (ResidueColourScheme) cs).setThreshold(groups[i].getPidThreshold());\r
+ else if (cs instanceof ScoreColourScheme)\r
+ ( (ScoreColourScheme) cs).setThreshold(groups[i].getPidThreshold());\r
+ }\r