Skip to content

Commit

Permalink
Check for pindex is not null before reading pindex->nHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
miodragpop committed Sep 23, 2022
1 parent e7a19a8 commit 53cb498
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4408,7 +4408,11 @@ int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate)

int tip_height = chainActive.Tip()->nHeight;
ShowProgress(_("Rescanning..."), 0);
LogPrintf("ScanForWalletTransactions(): Actual scanning started at height %i\n", pindex->nHeight);

if (pindex)
{
LogPrintf("ScanForWalletTransactions(): Actual scanning started at height %i\n", pindex->nHeight);
}

while (pindex)
{
Expand Down

0 comments on commit 53cb498

Please sign in to comment.