summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-16 21:30:09 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:24 -0400
commit6e5bdb9b4826b8669e00f10095a0e9d9713b9695 (patch)
tree3b6592df5159bd125c62e2bf343bbb01fc68a4ed /format.cc
parentf43370cae5d9297487fedeefa427d42ab869df48 (diff)
downloadfork-ledger-6e5bdb9b4826b8669e00f10095a0e9d9713b9695.tar.gz
fork-ledger-6e5bdb9b4826b8669e00f10095a0e9d9713b9695.tar.bz2
fork-ledger-6e5bdb9b4826b8669e00f10095a0e9d9713b9695.zip
Added a check for null.
Diffstat (limited to 'format.cc')
-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 {