Fix crash when running check & repair on an open AP/AR register

This was reported in comment 15 of https://bugzilla.gnome.org/show_bug.cgi?id=741418
This commit is contained in:
Geert Janssens 2014-12-20 12:10:20 +01:00
parent 23d0f79d5d
commit efc8544ff9

View File

@ -126,6 +126,9 @@ xaccTransScrubOrphans (Transaction *trans)
SplitList *node;
QofBook *book = NULL;
Account *root = NULL;
if (!trans) return;
for (node = trans->splits; node; node = node->next)
{
Split *split = node->data;