Merge branch 'JAL-1569_wuss_vienna_broke' into Release_2_8_2_Branch
[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);