Skip to content

Commit 70d3945

Browse files
committed
Fix potential NPD introduced in b297426
See bitcoin/bitcoin#10290 (comment) for more info.
1 parent e2b99b1 commit 70d3945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2538,7 +2538,7 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
25382538
}
25392539

25402540
int nStopAtHeight = GetArg("-stopatheight", DEFAULT_STOPATHEIGHT);
2541-
if (nStopAtHeight && pindexNewTip->nHeight >= nStopAtHeight) StartShutdown();
2541+
if (nStopAtHeight && pindexNewTip && pindexNewTip->nHeight >= nStopAtHeight) StartShutdown();
25422542

25432543
return true;
25442544
}

0 commit comments

Comments
 (0)