Skip to content

Commit

Permalink
Check pointer is valid (#2008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored May 23, 2023
1 parent df4f87c commit d2e6903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void BlockAssembler::RemoveFailedTransactions(const std::vector<std::string> &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<unsigned char> metadata;
const auto txType = GuessCustomTxType(*tx, metadata, false);
if (txType == CustomTxType::TransferDomain) {
Expand Down

0 comments on commit d2e6903

Please sign in to comment.