From 5eac26e79ef1482ebea31c8cd416c53f9d1714a9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 20 Aug 2022 11:03:49 +0100 Subject: cid#735694 silence Dereference after null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I76d6d7f33177b3cb15b258d497535e5db0f4d137 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138582 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- dbaccess/source/ui/querydesign/querycontroller.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'dbaccess/source') diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx index 2d137acd5d46..38caed31a79f 100644 --- a/dbaccess/source/ui/querydesign/querycontroller.cxx +++ b/dbaccess/source/ui/querydesign/querycontroller.cxx @@ -480,6 +480,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >& std::unique_ptr<::connectivity::OSQLParseNode> pNode = m_aSqlParser.parseTree(aErrorMsg,m_sStatement,m_bGraphicalDesign); if ( pNode ) { + assert(m_pSqlIterator && "SqlIterator must exist"); delete m_pSqlIterator->getParseTree(); m_pSqlIterator->setParseTree(pNode.release()); m_pSqlIterator->traverseAll(); -- cgit