mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-plugin-page-register.c] sanity check invoices_from_transaction
prevent segfault if trans is NULL. would crash when deleting a split.
This commit is contained in:
parent
00efc1696a
commit
088a386dc7
@ -4590,6 +4590,8 @@ static GncInvoice* invoice_from_split (Split* split)
|
||||
GList* invoices_from_transaction (Transaction* trans)
|
||||
{
|
||||
GList *invoices = NULL;
|
||||
if (!trans) return NULL;
|
||||
|
||||
for (GList *node = xaccTransGetAPARAcctSplitList(trans, TRUE); node;
|
||||
node = node->next)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user