Skip to content

Commit 8d17137

Browse files
committed
Another missing check for invalid taxids in majoritylca
1 parent 9a8c96f commit 8d17137

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/taxonomy/NcbiTaxonomy.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ WeightedTaxResult NcbiTaxonomy::weightedMajorityLCA(const std::vector<WeightedTa
707707
continue;
708708
}
709709
TaxonNode const *node = taxonNode(currTaxId, false);
710+
if (node == NULL) {
711+
continue;
712+
}
710713

711714
// iterate all ancestors up to the root
712715
TaxID currParentTaxId = node->parentTaxId;

0 commit comments

Comments
 (0)