From 82ac7ef313ae8a8d9251706d66345efed6bf90ab Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 11 Jan 2013 00:10:30 -0600 Subject: Guard against a possible NULL --- src/filters.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/filters.cc b/src/filters.cc index 5e2bf983..7570809a 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -983,7 +983,8 @@ void interval_posts::flush() sort_posts_by_date()); // Determine the beginning interval by using the earliest post - if (! interval.find_period(all_posts.front()->date())) + if (all_posts.front() && + ! interval.find_period(all_posts.front()->date())) throw_(std::logic_error, _("Failed to find period for interval report")); // Walk the interval forward reporting all posts within each one -- cgit v1.2.3