From 98190a4284fb4f76dd778de3c0f6ffeb01c96a70 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 4 Jun 2012 06:00:27 -0700 Subject: [PATCH] Add an assert --- src/TransactionEngine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TransactionEngine.cpp b/src/TransactionEngine.cpp index ccfc88be41..c31f3c8f27 100644 --- a/src/TransactionEngine.cpp +++ b/src/TransactionEngine.cpp @@ -237,6 +237,7 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran std::cerr << "applyTransaction>" << std::endl; mLedger = mDefaultLedger; + assert(mLedger); if (mAlternateLedger && (targetLedger != 0) && (targetLedger != mLedger->getLedgerSeq()) && (targetLedger == mAlternateLedger->getLedgerSeq())) {