X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FAnnotationSorter.java;fp=src%2Fjalview%2Fanalysis%2FAnnotationSorter.java;h=81398ebcd8683cdf5bbc54c5d3ae28ecef58a438;hb=d8ce3040f4e2dfdd3a3607ea981c5fe952a9a7a0;hp=a5d2164b655b4a9b1ef9c00595d07070a518b1e5;hpb=5720f2cea034f014f366886b3cb9a170a909e988;p=jalview.git diff --git a/src/jalview/analysis/AnnotationSorter.java b/src/jalview/analysis/AnnotationSorter.java index a5d2164..81398eb 100644 --- a/src/jalview/analysis/AnnotationSorter.java +++ b/src/jalview/analysis/AnnotationSorter.java @@ -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);