X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FAnnotationSorter.java;h=81398ebcd8683cdf5bbc54c5d3ae28ecef58a438;hb=bc98852ff1a926cf7b11a92db96ff8fe308ceae0;hp=a5d2164b655b4a9b1ef9c00595d07070a518b1e5;hpb=76139ef711627a3176736af47272ff55be62e720;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);