From 10fc16e114e263e659360bd52821a380b3a96fc4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 16 Feb 2006 21:30:19 +0000 Subject: (actual_date, effective_date): Changed an assert for non-NULL to a mere check (it happens with the 'output' command). --- journal.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'journal.cc') diff --git a/journal.cc b/journal.cc index abd12a46..6e0f9f1d 100644 --- a/journal.cc +++ b/journal.cc @@ -15,19 +15,15 @@ bool transaction_t::use_effective_date = false; std::time_t transaction_t::actual_date() const { - if (_date == 0) { - assert(entry); + if (_date == 0 && entry) return entry->actual_date(); - } return _date; } std::time_t transaction_t::effective_date() const { - if (_date_eff == 0) { - assert(entry); + if (_date_eff == 0 && entry) return entry->effective_date(); - } return _date_eff; } -- cgit v1.2.3