From fb22737aab28291bc85d80edeffc45ea1b8a32d2 Mon Sep 17 00:00:00 2001 From: Peter Bushnell Date: Tue, 23 May 2023 08:26:34 +0100 Subject: [PATCH] Check pointer is valid --- src/miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index 932c906d5c..00b60c8208 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -536,7 +536,7 @@ void BlockAssembler::RemoveFailedTransactions(const std::vector &fa for (const auto &txStr : failedTransactions) { const auto failedHash = uint256S(txStr); for (const auto &tx : pblock->vtx) { - if (tx->GetHash() == failedHash) { + if (tx && tx->GetHash() == failedHash) { std::vector metadata; const auto txType = GuessCustomTxType(*tx, metadata, false); if (txType == CustomTxType::TransferDomain) {