Skip to content

Commit

Permalink
Fixed crash on non-HD wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Feb 28, 2025
1 parent 9b10a17 commit 876e407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8253,7 +8253,7 @@ std::pair<CAmount, CAmount> CWallet::GetSparkBalance()
}

bool CWallet::IsSparkAddressMine(const std::string& address) {
return sparkWallet->isAddressMine(address);
return sparkWallet && sparkWallet->isAddressMine(address);
}

bool CWallet::SetSparkAddressBook(const std::string& address, const std::string& strName, const std::string& strPurpose)
Expand Down

0 comments on commit 876e407

Please sign in to comment.