From d88ca7f88d85f0a86428cafdc3df114eb0148ebd Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 9 Jan 2018 13:59:58 +0000 Subject: [PATCH] JAL-2805 put the sequence setting in if statement (not all nodes have sequences) --- src/jalview/ext/archaeopteryx/TreeNode.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jalview/ext/archaeopteryx/TreeNode.java b/src/jalview/ext/archaeopteryx/TreeNode.java index df572e1..9e1b0d1 100644 --- a/src/jalview/ext/archaeopteryx/TreeNode.java +++ b/src/jalview/ext/archaeopteryx/TreeNode.java @@ -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 -- 1.7.10.2