mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Bug #702899: Fix crash in scrubbing code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23074 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
+1
-1
@@ -1042,7 +1042,7 @@ xaccTransFindCommonCurrency (Transaction *trans, QofBook *book)
|
||||
}
|
||||
found = g_slist_sort( comlist, commodity_compare);
|
||||
|
||||
if ( ((CommodityCount*)(found->data))->commodity != NULL)
|
||||
if ( found && found->data && (((CommodityCount*)(found->data))->commodity != NULL))
|
||||
{
|
||||
return ((CommodityCount*)(found->data))->commodity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user