From: gmungoc Date: Thu, 8 Oct 2020 14:29:24 +0000 (+0100) Subject: JAL-3763 failsafe check for null X-Git-Tag: Release_2_11_2_0~15^2~1^2~1^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0a2ec403c08a1747b7e876f00f468867f8329d36;p=jalview.git JAL-3763 failsafe check for null --- 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) {