X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FAlignmentAnnotationUtils.java;h=a8e61e9cba53fe2561d026d2b8271664235a1f33;hb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;hp=9bdbf7352a57513df57587766dc930e0243d5ebc;hpb=eaf9092bfa74b5162589c8775f68a19dd79dbb1d;p=jalview.git diff --git a/src/jalview/analysis/AlignmentAnnotationUtils.java b/src/jalview/analysis/AlignmentAnnotationUtils.java index 9bdbf73..a8e61e9 100644 --- a/src/jalview/analysis/AlignmentAnnotationUtils.java +++ b/src/jalview/analysis/AlignmentAnnotationUtils.java @@ -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)))