From eed0d5e634925143c4edfdfb7ea093d752fd7d42 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Fri, 25 Sep 1998 05:56:28 +0000 Subject: [PATCH] bug fixes from Jon K}re Hellan git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1227 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/MultiLedger.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/MultiLedger.c b/src/MultiLedger.c index ced6b203f7..e54c0873fa 100644 --- a/src/MultiLedger.c +++ b/src/MultiLedger.c @@ -431,6 +431,8 @@ xaccRegisterRefresh (SplitRegister *splitreg) xaccLedgerDisplay *regData; int n; + if (!fullList) return; + /* find the ledger which contains this register */ n = 0; regData = fullList[n]; while (regData) { @@ -453,6 +455,8 @@ xaccRegisterCountHack (SplitRegister *splitreg) xaccLedgerDisplay *regData; int n; + if (!fullList) return; + /* find the ledger which contains this register */ n = 0; regData = fullList[n]; while (regData) { @@ -476,7 +480,7 @@ MarkDirtyAllRegs (Account *acc) xaccLedgerDisplay *regData; int n; - if (!acc) return; + if (!acc || !fullList) return; /* find all registers which contain this account */ n = 0; regData = fullList[n]; @@ -498,7 +502,7 @@ RefreshAllRegs (Account *acc) xaccLedgerDisplay *regData; int n; - if (!acc) return; + if (!acc || !fullList) return; /* find all registers which contain this account */ n = 0; regData = fullList[n];