JAL-3763 failsafe check for null
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 8 Oct 2020 14:29:24 +0000 (15:29 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 22 Oct 2020 14:43:25 +0000 (15:43 +0100)
src/jalview/datamodel/AlignedCodonFrame.java

index 0927dda..6e83fbb 100644 (file)
@@ -220,6 +220,10 @@ public class AlignedCodonFrame
       int[] codon = null;
       SequenceI mappedSeq = null;
       SequenceI ds = seq.getDatasetSequence();
+      if (ds == null)
+      {
+        ds = seq;
+      }
       
       if (this.fromSeq == seq || this.fromSeq == ds)
       {