summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/account.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/account.cc b/src/account.cc
index 07c01c7e..741cc2f9 100644
--- a/src/account.cc
+++ b/src/account.cc
@@ -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) {