summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2020-03-27 18:18:19 -0700
committerJohn Wiegley <johnw@newartisans.com>2020-03-27 18:18:19 -0700
commitbb96e1606444e13dedbd082e74d750ab0e50377d (patch)
tree7b67540beef8143f844a2a1c23c55c1e1a3ac61d
parent7cd4ec122b837070f73338ff4dac6d13ec2b74de (diff)
downloadledger-bb96e1606444e13dedbd082e74d750ab0e50377d.tar.gz
ledger-bb96e1606444e13dedbd082e74d750ab0e50377d.tar.bz2
ledger-bb96e1606444e13dedbd082e74d750ab0e50377d.zip
Add an assertion to src/xact.cc
-rw-r--r--src/xact.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 60333004..b309b132 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -388,6 +388,8 @@ bool xact_base_t::finalize()
bool some_null = false;
foreach (post_t * post, posts) {
+ assert(post->account);
+
if (! post->amount.is_null()) {
all_null = false;
post->amount.in_place_reduce();