Skip to content
Permalink
Browse files

fix #1850: segfault when using ledger print

  • Loading branch information
Panke authored and jwiegley committed Jan 8, 2020
1 parent 98cb8b1 commit b2483e75c0ba53349bb8a0c2dbf1c29e0b42cd88
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit b2483e7

Please sign in to comment.
You can’t perform that action at this time.