If an account's aggregate amount is null, return 0

This commit is contained in:
John Wiegley 2009-02-19 15:46:57 -04:00
parent f9607a57c1
commit bef9fdc471

View file

@ -187,7 +187,10 @@ namespace {
value_t get_amount(account_t& account) {
assert(account.xdata_);
return account.xdata_->value;
if (account.xdata_->value.is_null())
return 0L;
else
return account.xdata_->value;
}
value_t get_depth(account_t& account) {