JAL-1737 ignore non-positional annotations for display
[jalview.git] / src / jalview / gui / AlignFrame.java
index 1b2410a..1cd2ea8 100644 (file)
@@ -5961,6 +5961,13 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     for (AlignmentAnnotation aa : alignPanel.getAlignment()
             .getAlignmentAnnotation())
     {
+      /*
+       * don't display non-positional annotations on an alignment
+       */
+      if (aa.annotations == null)
+      {
+        continue;
+      }
       boolean apply = (aa.sequenceRef == null && forAlignment)
               || (aa.sequenceRef != null && forSequences);
       if (apply)