X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignedCodonFrame.java;h=5240f0cf7bb1bbdc035c3e8e46bfe3622ac7b75c;hb=0a2ec403c08a1747b7e876f00f468867f8329d36;hp=d59078bb5cf50ea90338e69ae21a52fc23464d46;hpb=96a5726c430b26ed83fc8ee3be0c7ea871519fa1;p=jalview.git diff --git a/src/jalview/datamodel/AlignedCodonFrame.java b/src/jalview/datamodel/AlignedCodonFrame.java index d59078b..5240f0c 100644 --- a/src/jalview/datamodel/AlignedCodonFrame.java +++ b/src/jalview/datamodel/AlignedCodonFrame.java @@ -170,6 +170,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) {