From ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b Mon Sep 17 00:00:00 2001 From: WY Date: Mon, 19 Dec 2022 03:37:26 +0800 Subject: Initial fix for #2147 --- src/post.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/post.cc') diff --git a/src/post.cc b/src/post.cc index 7c5379c4..637ca80c 100644 --- a/src/post.cc +++ b/src/post.cc @@ -135,7 +135,7 @@ string post_t::payee() const string post_payee = payee_from_tag(); - return post_payee != "" ? post_payee : xact->payee; + return post_payee != "" ? post_payee : xact ? xact->payee : ""; } namespace { -- cgit v1.2.3