If an account's "total" is empty, return 0

This commit is contained in:
John Wiegley 2009-02-15 22:34:10 -04:00
parent 503a96034e
commit e8c90ef96f

View file

@ -166,6 +166,9 @@ namespace {
value_t get_total(account_t& account) { value_t get_total(account_t& account) {
assert(account.xdata_); assert(account.xdata_);
if (account.xdata_->total.is_null())
return 0L;
else
return account.xdata_->total; return account.xdata_->total;
} }