summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/journal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal.cc b/src/journal.cc
index db909bb4..6b28f519 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -136,7 +136,7 @@ account_t * journal_t::register_account(const string& name, post_t * post,
// the payee indicates an account that should be used.
if (result->name == _("Unknown")) {
foreach (account_mapping_t& value, payees_for_unknown_accounts) {
- if (post && value.first.match(post->xact->payee)) {
+ if (post && post->xact && value.first.match(post->xact->payee)) {
result = value.second;
break;
}