mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add check that account != NULL when inserting lot
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17796 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -84,7 +84,9 @@ set_lot_account( gpointer pObject, gpointer pValue )
|
||||
|
||||
pBook = qof_instance_get_book( QOF_INSTANCE(lot) );
|
||||
pAccount = xaccAccountLookup( guid, pBook );
|
||||
xaccAccountInsertLot( pAccount, lot );
|
||||
if( pAccount != NULL ) {
|
||||
xaccAccountInsertLot( pAccount, lot );
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user