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) {