From: kjvdheide Date: Tue, 9 Jan 2018 13:59:58 +0000 (+0000) Subject: JAL-2805 put the sequence setting in if statement (not all nodes have X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d88ca7f88d85f0a86428cafdc3df114eb0148ebd;p=jalview.git JAL-2805 put the sequence setting in if statement (not all nodes have sequences) --- 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