From 3026baaa7c3fbd33f7208dbc0e426ae33a78bf73 Mon Sep 17 00:00:00 2001 From: tucenaber Date: Tue, 23 Oct 2012 22:41:47 +0200 Subject: [PATCH] Added checks for null pointers in Shutdown Estetics --- src/init.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 45658e49d0..d9b892c659 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -78,8 +78,10 @@ void Shutdown(void* parg) StopNode(); { LOCK(cs_main); - pcoinsTip->Flush(); - pblocktree->Flush(); + if (pcoinsTip) + pcoinsTip->Flush(); + if (pblocktree) + pblocktree->Flush(); delete pcoinsTip; delete pcoinsdbview; delete pblocktree;