CountDistinctClusters: nullptrs disallowed

This commit is contained in:
Greg Sanders committed 2025-03-31 13:07:37 -04:00
1 parent 8bca0d325a
commit 57433502e6
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1880,7 +1880,7 @@ TxGraph::GraphIndex TxGraphImpl::CountDistinctClusters(std::span<const Ref* cons
std::vector<Cluster*> clusters;
clusters.reserve(refs.size());
for (const Ref* ref : refs) {
if (ref == nullptr) continue;
Assume(ref);
if (GetRefGraph(*ref) == nullptr) continue;
Assume(GetRefGraph(*ref) == this);
auto cluster = FindCluster(GetRefIndex(*ref), level);