From 3975c4e85ff34e48d953b110f947c1768b59e750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 24 Aug 2019 21:31:41 +0100 Subject: [PATCH] cid#1448241 silence Explicit null deferenced false positive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iaf20e2c7c6f8502d902b41f2c109589aaa490a10 Reviewed-on: https://gerrit.libreoffice.org/78075 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- framework/source/uielement/genericstatusbarcontroller.cxx | 1 + xmloff/source/draw/ximplink.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/framework/source/uielement/genericstatusbarcontroller.cxx b/framework/source/uielement/genericstatusbarcontroller.cxx index 431069c9d2b8..ee3b28d4af75 100644 --- a/framework/source/uielement/genericstatusbarcontroller.cxx +++ b/framework/source/uielement/genericstatusbarcontroller.cxx @@ -55,6 +55,7 @@ GenericStatusbarController::GenericStatusbarController( m_xStatusbarItem = rxItem; if ( m_xStatusbarItem.is() ) { + assert(m_aCommandURL.pData); m_aCommandURL = m_xStatusbarItem->getCommand(); m_nID = m_xStatusbarItem->getItemId(); m_bOwnerDraw = ( m_xStatusbarItem->getStyle() & ui::ItemStyle::OWNER_DRAW ) == ui::ItemStyle::OWNER_DRAW; diff --git a/xmloff/source/draw/ximplink.cxx b/xmloff/source/draw/ximplink.cxx index ec43cf9d38a0..1e891ff1f167 100644 --- a/xmloff/source/draw/ximplink.cxx +++ b/xmloff/source/draw/ximplink.cxx @@ -38,6 +38,7 @@ SdXMLShapeLinkContext::SdXMLShapeLinkContext( SvXMLImport& rImport, sal_uInt16 n sal_uInt16 nPrefix = rImport.GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName ); if( (nPrefix == XML_NAMESPACE_XLINK) && IsXMLToken( aLocalName, XML_HREF ) ) { + assert(msHyperlink.pData); msHyperlink = xAttrList->getValueByIndex( i ); break; }