Merge: 497958b 68dcaa7
[jalview.git] / src / jalview / analysis / AnnotationSorter.java
index a5d2164..81398eb 100644 (file)
@@ -209,6 +209,10 @@ public class AnnotationSorter
   public void sort(AlignmentAnnotation[] alignmentAnnotations,
           SequenceAnnotationOrder order)
   {
+    if (alignmentAnnotations == null)
+    {
+      return;
+    }
     // cache 'alignment sequence position' for the annotations
     saveSequenceIndices(alignmentAnnotations);