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:
Phil Longstaff
2009-01-04 03:14:46 +00:00
parent f61fca01d1
commit a6f9a6381c

View File

@@ -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