diff --git a/src/beast/base/evolution/operator/TipDatesRandomWalker.java b/src/beast/base/evolution/operator/TipDatesRandomWalker.java index 9ed8d786..077d762a 100644 --- a/src/beast/base/evolution/operator/TipDatesRandomWalker.java +++ b/src/beast/base/evolution/operator/TipDatesRandomWalker.java @@ -43,9 +43,17 @@ public void initAndValidate() { // determine taxon set to choose from if (m_taxonsetInput.get() != null) { - List taxaNames = new ArrayList<>(); - for (String taxon : treeInput.get().getTaxaNames()) { - taxaNames.add(taxon); + List taxaNames; + if (treeInput.get().m_taxonset.get() != null) { + // taxonset may have changed in BEAUti, and + // internal tree state not updated yet, so use + // taxonset input of tree directly + taxaNames = treeInput.get().m_taxonset.get().asStringList(); + } else { + taxaNames = new ArrayList<>(); + for (String taxon : treeInput.get().getTaxaNames()) { + taxaNames.add(taxon); + } } List set = m_taxonsetInput.get().asStringList();