JAL-3070 cope when dataset sequence is passed
authorJim Procter <jprocter@issues.jalview.org>
Thu, 26 Sep 2019 15:22:12 +0000 (16:22 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 26 Sep 2019 15:22:12 +0000 (16:22 +0100)
src/jalview/analysis/AlignmentAnnotationUtils.java

index dd5e080..5c2d936 100644 (file)
@@ -245,8 +245,8 @@ public class AlignmentAnnotationUtils
    * association as necessary.
    * 
    * @param newAnnot
-   *          - annotation row associated with an alignment sequence to be
-   *          propagated to its dataset sequence.
+   *          - annotation row associated with a sequence to be propagated to
+   *          its reference annotation
    * @param typeName
    *          - label used to match existing row
    * @param calcId
@@ -257,7 +257,7 @@ public class AlignmentAnnotationUtils
   {
     if (newAnnot.sequenceRef != null)
     {
-      SequenceI dsseq = newAnnot.sequenceRef.getDatasetSequence();
+      SequenceI dsseq = newAnnot.sequenceRef;
       while (dsseq.getDatasetSequence() != null)
       {
         dsseq = dsseq.getDatasetSequence();