Fix a crash in checkAccept

This commit is contained in:
JoelKatz
2013-10-11 16:13:16 -07:00
parent 978c196c78
commit eb9eb3aa53

View File

@@ -553,7 +553,7 @@ void LedgerMaster::checkAccept (uint256 const& hash)
if (!ledger)
{
InboundLedger::pointer l = getApp().getInboundLedgers().findCreate(hash, 0, false);
if (l->isComplete() && !l->isFailed())
if (l && l->isComplete() && !l->isFailed())
ledger = l->getLedger();
else
{