Fix the bug that crashed ec3.

This commit is contained in:
JoelKatz
2013-02-09 20:07:36 -08:00
parent 4abdb34c20
commit b6f9811001

View File

@@ -169,7 +169,7 @@ bool LedgerMaster::acquireMissingLedger(Ledger::ref origLedger, const uint256& l
return true;
Ledger::pointer ledger = mLedgerHistory.getLedgerBySeq(ledgerSeq);
if (Ledger::getHashByIndex(ledgerSeq) == ledgerHash)
if (ledger && (Ledger::getHashByIndex(ledgerSeq) == ledgerHash))
{
cLog(lsDEBUG) << "Ledger hash found in database";
mTooFast = true;