*
* Update jalview newick representation with TreeNode map
*
- * @param tp
- * the treepanel that this tree is bound to.
+ * @param tp the treepanel that this tree is bound to.
*/
public void UpdateSequenceTreeMap(TreePanel tp)
{
if (tp == null || tree == null)
return;
Vector leaves = new Vector();
+ if (tp.getTree()==null)
+ {
+ Cache.log.warn("Not updating SequenceTreeMap for "+tree.getVorbaId());
+ return;
+ }
tp.getTree().findLeaves(tp.getTree().getTopNode(), leaves);
Treenode[] tn = tree.getTreenode(); // todo: select nodes for this
// particular tree