From 6e5bdb9b4826b8669e00f10095a0e9d9713b9695 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 16 Feb 2006 21:30:09 +0000 Subject: Added a check for null. --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3