diff options
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/account.cc b/src/account.cc index 6331bfb2..23ce2e68 100644 --- a/src/account.cc +++ b/src/account.cc @@ -166,7 +166,10 @@ namespace { value_t get_total(account_t& account) { assert(account.xdata_); - return account.xdata_->total; + if (account.xdata_->total.is_null()) + return 0L; + else + return account.xdata_->total; } value_t get_count(account_t& account) { |