diff options
| author | Gavin Andresen <[email protected]> | 2013-05-24 15:52:52 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-05-24 15:52:52 -0400 |
| commit | dbc6dea1b27e87bca0ef496b8b74d6f027bb7de3 (patch) | |
| tree | 6a1954599ea6b93ce54bb1dd44986ba96a48e476 /src/init.cpp | |
| parent | All-resolution pixmap, to make win32 builds determisitic again (diff) | |
| download | discoin-dbc6dea1b27e87bca0ef496b8b74d6f027bb7de3.tar.xz discoin-dbc6dea1b27e87bca0ef496b8b74d6f027bb7de3.zip | |
Fix crash-at-shutdown if exiting before initializing wallet
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index ebd9dee7b..59bf32eca 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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) |