Skip to content

Commit

Permalink
add missing CAutoFile::IsNull() check in main
Browse files Browse the repository at this point in the history
Rebased-From: 84857e8
Github-Pull: #5437
  • Loading branch information
Philip Kaufmann authored and laanwj committed Dec 19, 2014
1 parent c3c635b commit b03632a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Expand Up @@ -1079,6 +1079,8 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock
CDiskTxPos postx;
if (pblocktree->ReadTxIndex(hash, postx)) {
CAutoFile file(OpenBlockFile(postx, true), SER_DISK, CLIENT_VERSION);
if (file.IsNull())
return error("%s: OpenBlockFile failed", __func__);
CBlockHeader header;
try {
file >> header;
Expand Down

0 comments on commit b03632a

Please sign in to comment.