JAL-1645 source formatting and organise imports
[jalview.git] / src / jalview / analysis / AlignmentAnnotationUtils.java
index 9bdbf73..a8e61e9 100644 (file)
@@ -63,6 +63,14 @@ public class AlignmentAnnotationUtils
 
     for (AlignmentAnnotation aa : annotations)
     {
+      /*
+       * Ignore non-positional annotations, can't render these against an
+       * alignment
+       */
+      if (aa.annotations == null)
+      {
+        continue;
+      }
       if (forSequences != null
               && (aa.sequenceRef != null && forSequences
                       .contains(aa.sequenceRef)))