JAL-1705 handle case of sequence with no dataset sequence
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 19 Feb 2016 17:00:55 +0000 (17:00 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 19 Feb 2016 17:00:55 +0000 (17:00 +0000)
src/jalview/datamodel/AlignedCodonFrame.java

index 5dfd434..3fc8c28 100644 (file)
@@ -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;
           }