Fix crash-at-shutdown if exiting before initializing wallet

pull/2683/merge
Gavin Andresen 12 years ago
parent 8ab6d0a568
commit dbc6dea1b2

@ -100,7 +100,8 @@ void Shutdown()
StopNode();
{
LOCK(cs_main);
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
if (pwalletMain)
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
if (pblocktree)
pblocktree->Flush();
if (pcoinsTip)

Loading…
Cancel
Save