From c19ee8bb9c1b1f2b0996522a4935333d43ac9671 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 8 Oct 2020 15:29:24 +0100 Subject: [PATCH] JAL-3763 failsafe check for null --- src/jalview/datamodel/AlignedCodonFrame.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/datamodel/AlignedCodonFrame.java b/src/jalview/datamodel/AlignedCodonFrame.java index 0927dda..6e83fbb 100644 --- a/src/jalview/datamodel/AlignedCodonFrame.java +++ b/src/jalview/datamodel/AlignedCodonFrame.java @@ -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) { -- 1.7.10.2