Skip to content

Commit 62dafa7

Browse files
committed
fix bug 'dump when insert an operation-rule table'
1 parent 693f927 commit 62dafa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/peersafe/app/tx/impl/SqlStatement.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ namespace ripple {
266266
if(!OperationRule::hasOperationRule(view,tx))
267267
return tesSUCCESS;
268268
//
269+
if (ctx_.app.getTxStoreDBConn().GetDBConn() == nullptr ||
270+
ctx_.app.getTxStoreDBConn().GetDBConn()->getSession().get_backend() == nullptr)
271+
{
272+
return tefDBNOTCONFIGURED;
273+
}
269274
auto envPair = getTransactionDBEnv(ctx_);
270275
TxStoreTransaction stTran(envPair.first);
271276
TxStore& txStore = *envPair.second;

0 commit comments

Comments
 (0)