Guard against a possible NULL
This commit is contained in:
parent
63a14fd5e0
commit
82ac7ef313
1 changed files with 2 additions and 1 deletions
|
|
@ -983,7 +983,8 @@ void interval_posts::flush()
|
||||||
sort_posts_by_date());
|
sort_posts_by_date());
|
||||||
|
|
||||||
// Determine the beginning interval by using the earliest post
|
// 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"));
|
throw_(std::logic_error, _("Failed to find period for interval report"));
|
||||||
|
|
||||||
// Walk the interval forward reporting all posts within each one
|
// Walk the interval forward reporting all posts within each one
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue