Skip to content

Commit

Permalink
Fix optional memo not being checked
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Feb 18, 2024
1 parent 9a60dd8 commit b0bf2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/transactionrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ bool TransactionRecord::decomposeCreditTransaction(const CWallet* wallet, const
sub.type = TransactionRecord::RecvWithShieldedAddress;
sub.credit = sspkm->GetOutPointValue(wtx, out);
sub.memo = sspkm->GetOutPointMemo(wtx, out);
if (!sub.memo->empty()) {
if (sub.memo && !sub.memo->empty()) {
sub.type = TransactionRecord::RecvWithShieldedAddressMemo;
}
sub.idx = i;
Expand Down

0 comments on commit b0bf2c2

Please sign in to comment.