summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorSimon Michael <simon@joyful.com>2013-01-11 10:12:42 -0800
committerSimon Michael <simon@joyful.com>2013-01-11 10:12:42 -0800
commit0790920424befd67db7b986724b70f72b2d9592b (patch)
treec62ba25bacd6af9c859130c8c780da4dc065d969 /src/filters.cc
parentea09a8d50720f0ca42cee46d017e111a4349fa97 (diff)
parentaba0a5ed2dc2dc91f61be32f4c12a5cf6bffd754 (diff)
downloadledger-0790920424befd67db7b986724b70f72b2d9592b.tar.gz
ledger-0790920424befd67db7b986724b70f72b2d9592b.tar.bz2
ledger-0790920424befd67db7b986724b70f72b2d9592b.zip
Merge branch 'next' of github.com:ledger/ledger into next
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc3
1 files changed, 2 insertions, 1 deletions
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