JAL-2805 put the sequence setting in if statement (not all nodes have
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 9 Jan 2018 13:59:58 +0000 (13:59 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 9 Jan 2018 13:59:58 +0000 (13:59 +0000)
sequences)

src/jalview/ext/archaeopteryx/TreeNode.java

index df572e1..9e1b0d1 100644 (file)
@@ -29,8 +29,11 @@ public class TreeNode implements TreeNodeI
   private TreeNode(PhylogenyNode aptxNode)
   {
     node = aptxNode;
+    if (!aptxNode.getNodeData().getSequence().isEmpty())
+    {
     nodeSeq = DataConversions
-            .createJalviewSequence(aptxNode.getNodeData().getSequence());
+              .createJalviewSequence(aptxNode.getNodeData().getSequence());
+    }
     originalNodes.put(aptxNode, this);
     wrappedNodes.put(this, aptxNode);
 
@@ -88,7 +91,6 @@ public class TreeNode implements TreeNodeI
   public SequenceI getSequence()
   {
     return nodeSeq;
-    // ideally this would return a converted node.getNodeData().getSequence()
   }
 
   @Override