From 04af7b5fa6e63a7fe9cc424db83b904c1d6a4a1b Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 23 Nov 2025 10:33:03 +0800 Subject: [PATCH] [qofobject.cpp] check col!=nullptr instead of obj because obj was already verified non-nullptr a few lines prior. this logic error present since original qofobject.c --- libgnucash/engine/qofobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/engine/qofobject.cpp b/libgnucash/engine/qofobject.cpp index f6f17e5049..b74a3db79c 100644 --- a/libgnucash/engine/qofobject.cpp +++ b/libgnucash/engine/qofobject.cpp @@ -201,7 +201,7 @@ qof_object_foreach (QofIdTypeConst type_name, QofBook *book, return; } col = qof_book_get_collection (book, obj->e_type); - if (!obj) + if (!col) { return; }