Resolve test assert.

This commit is contained in:
Sherlock
2024-04-12 15:52:39 -07:00
committed by GitHub
parent 8d6f748aca
commit f0d45de642

View File

@@ -216,7 +216,7 @@ qof_collection_lookup_entity (const QofCollection *col, const GncGUID * guid)
if (guid == NULL) return NULL;
ent = static_cast<QofInstance*>(g_hash_table_lookup (col->hash_of_entities,
guid));
if (qof_instance_get_destroying(ent)) return NULL;
if (ent != NULL && qof_instance_get_destroying(ent)) return NULL;
return ent;
}