From 446ad3a73694e78133659f1cc545a54994724294 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jan 2017 00:33:24 +0200 Subject: [PATCH] test --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 9cff49586..a6cb252fb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1441,6 +1441,8 @@ bool ReadBlockFromDisk(int32_t height,CBlock& block, const CDiskBlockPos& pos) bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex) { + if ( pindex == 0 ) + return false; if (!ReadBlockFromDisk(pindex->nHeight,block, pindex->GetBlockPos())) return false; if (block.GetHash() != pindex->GetBlockHash())