Merge branch 'features/JAL-1541_BioJsMSA' into develop
[jalview.git] / src / jalview / gui / AlignFrame.java
index 61073e3..001c2d5 100644 (file)
@@ -5964,6 +5964,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)