af.getAlignViewport().setShowSequenceFeatures(showSeqFeatures);
ColourSchemeI cs = ColourSchemeMapper.getJalviewColourScheme(
colourSchemeName, al);
- af.changeColour(cs);
+ if (cs != null)
+ {
+ af.changeColour(cs);
+ }
}
else
{
af.getViewport().setFeaturesDisplayed(fd);
ColourSchemeI cs = ColourSchemeMapper.getJalviewColourScheme(
colourSchemeName, al);
- af.changeColour(cs);
+ if (cs != null)
+ {
+ af.changeColour(cs);
+ }
}
else
{
alignFrame.getViewport().setFeaturesDisplayed(fd);
ColourSchemeI cs = ColourSchemeMapper.getJalviewColourScheme(
colourSchemeName, al);
- alignFrame.changeColour(cs);
+ if (cs != null)
+ {
+ alignFrame.changeColour(cs);
+ }
}
else
{
jsonAlignmentPojo
.setAlignAnnotation(annotationToJsonPojo(annotations));
}
+ else
+ {
+ if (globalColourScheme.equalsIgnoreCase("RNA Helices"))
+ {
+ jsonAlignmentPojo.setGlobalColorScheme("None");
+ }
+ }
if (exportSettings.isExportFeatures())
{