Skip to content

Commit c45da32

Browse files
committed
Merge #10305: Fix potential NPD introduced in b297426
70d3945 Fix potential NPD introduced in b297426 (Matt Corallo) Tree-SHA512: 920d03d2081ba2f3447cfa655dcbc3e17858454dab051436f717ada977d4f4bfe999c303018bc8aa33f30e37a97c63d70ba08632f5e7b7a8aa555615dde2191a
2 parents ab1f1d3 + 70d3945 commit c45da32

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)