Added a check for null.

This commit is contained in:
John Wiegley 2006-02-16 21:30:09 +00:00
parent 2df14a5b86
commit e22fa78e84

View file

@ -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 {