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];