.getWidth(), ColourSchemeProperty.getColourName(av
.getGlobalColourScheme()));
}
-
- cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
- av.getIgnoreGapsConsensus());
+ // cs is null if shading is an annotationColourGradient
+ if (cs!=null)
+ {
+ cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
+ av.getIgnoreGapsConsensus());
+ }
}
SequenceGroup sg = new SequenceGroup(sequences, "", cs, true, true,
.getWidth(), ColourSchemeProperty.getColourName(av
.getGlobalColourScheme()));
}
-
- cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
- av.getIgnoreGapsConsensus());
+ // cs is null if shading is an annotationColourGradient
+ if (cs!=null)
+ {
+ cs.setThreshold(av.getGlobalColourScheme().getThreshold(),
+ av.getIgnoreGapsConsensus());
+ }
}
SequenceGroup sg = new SequenceGroup(sequences, null, cs, true, true,