Skip to content

Commit

Permalink
Another missing check for invalid taxids in majoritylca
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Dec 27, 2024
1 parent 9a8c96f commit 8d17137
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/taxonomy/NcbiTaxonomy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ WeightedTaxResult NcbiTaxonomy::weightedMajorityLCA(const std::vector<WeightedTa
continue;
}
TaxonNode const *node = taxonNode(currTaxId, false);
if (node == NULL) {
continue;
}

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

0 comments on commit 8d17137

Please sign in to comment.