mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a crash in checkAccept
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user