summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.cc b/format.cc
index 8c7515be..bf769e3e 100644
--- a/format.cc
+++ b/format.cc
@@ -637,7 +637,7 @@ void format_transactions::operator()(transaction_t& xact)
first_line_format.format(output_stream, details_t(xact));
last_entry = xact.entry;
}
- else if (last_xact->date() != xact.date()) {
+ else if (last_xact && last_xact->date() != xact.date()) {
first_line_format.format(output_stream, details_t(xact));
}
else {