summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-09-20 07:26:44 -0700
committerCraig Earls <enderw88@gmail.com>2013-09-20 07:26:44 -0700
commitbee6605e084777261f1536e4e65f76bb94eca06c (patch)
tree678bddcb8dc8bfd87d352084c3dece144a0974ed /src/journal.cc
parent9f3afc26f5e7863ed8beac3a411dab8becc7bff9 (diff)
parentd30c3fb869b8c4f7740eefec573fadedbe21b7d1 (diff)
downloadfork-ledger-bee6605e084777261f1536e4e65f76bb94eca06c.tar.gz
fork-ledger-bee6605e084777261f1536e4e65f76bb94eca06c.tar.bz2
fork-ledger-bee6605e084777261f1536e4e65f76bb94eca06c.zip
Merge branch 'master' into ledger-mode-automatic-transactions
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal.cc b/src/journal.cc
index 3e2ecbea..7eeaabe8 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -151,7 +151,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 (value.first.match(post->xact->payee)) {
+ if (post && value.first.match(post->xact->payee)) {
result = value.second;
break;
}