{
boolean showForAlignment = showAlignmentAnnotations.getState();
boolean showForSequences = showSequenceAnnotations.getState();
- for (AlignmentAnnotation aa : alignPanel.getAlignment()
+ if (alignPanel.getAlignment().getAlignmentAnnotation() != null)
+ {
+ for (AlignmentAnnotation aa : alignPanel.getAlignment()
.getAlignmentAnnotation())
{
boolean visible = (aa.sequenceRef == null ? showForAlignment
: showForSequences);
aa.visible = visible;
+ }
}
alignPanel.validateAnnotationDimensions(true);
validate();