diff --git a/module/PocoLib/Data.cpp b/module/PocoLib/Data.cpp index 274c08e4..06b341e4 100644 --- a/module/PocoLib/Data.cpp +++ b/module/PocoLib/Data.cpp @@ -639,6 +639,10 @@ SqDataAsyncBuilder::SqDataAsyncBuilder(Poco::Data::SessionImpl * session, StackS // ------------------------------------------------------------------------------------------------ void SqDataAsyncBuilder::Submit() { + if (mSession.isNull()) + { + STHROWF("Asynchronous query builder instance is invalid."); + } auto & connector = mSession->connectorName(); // Is this a SQLite session? if (connector == "sqlite")