JAL-2805 check no longer errors if the sequence is actually null (woops)
[jalview.git] / src / jalview / ext / archaeopteryx / TreeNode.java
index df572e1..69077dc 100644 (file)
@@ -29,8 +29,11 @@ public class TreeNode implements TreeNodeI
   private TreeNode(PhylogenyNode aptxNode)
   {
     node = aptxNode;
+    if (aptxNode.getNodeData().getSequence() != null)
+    {
     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