JAL-2154 verify mapping’s sequenceI ref has been resolved for AlignedCodonFrame forwa...
authorJim Procter <jprocter@issues.jalview.org>
Fri, 19 Aug 2016 10:12:28 +0000 (11:12 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 19 Aug 2016 10:12:28 +0000 (11:12 +0100)
src/jalview/gui/Jalview2XML.java

index 68245b6..9e312db 100644 (file)
@@ -365,6 +365,12 @@ public class Jalview2XML
       public jalview.datamodel.Mapping mp = _jmap;
 
       @Override
+      public boolean isResolvable()
+      {
+        return super.isResolvable() && mp.getTo() != null;
+      };
+
+      @Override
       boolean resolve()
       {
         SequenceI seq = getSrefDatasetSeq();