Skip to content

Commit

Permalink
Resolve test assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
agwekixj authored Apr 12, 2024
1 parent 8d6f748 commit f0d45de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgnucash/engine/qofid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f0d45de

Please sign in to comment.