From: gmungoc Date: Fri, 19 Feb 2016 17:00:55 +0000 (+0000) Subject: JAL-1705 handle case of sequence with no dataset sequence X-Git-Tag: Release_2_10_0~296^2~22^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a4ace9297e743fb504dffd43ebb11074db263e10;p=jalview.git JAL-1705 handle case of sequence with no dataset sequence --- diff --git a/src/jalview/datamodel/AlignedCodonFrame.java b/src/jalview/datamodel/AlignedCodonFrame.java index 5dfd434..3fc8c28 100644 --- a/src/jalview/datamodel/AlignedCodonFrame.java +++ b/src/jalview/datamodel/AlignedCodonFrame.java @@ -321,7 +321,8 @@ public class AlignedCodonFrame { for (SequenceI sourceAligned : al.getSequences()) { - if (ssm.mapping.to == sourceAligned.getDatasetSequence()) + if (ssm.mapping.to == sourceAligned.getDatasetSequence() + || ssm.mapping.to == sourceAligned) { return sourceAligned; }