diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-08-24 21:31:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-08-25 11:32:38 +0200 |
commit | 3975c4e85ff34e48d953b110f947c1768b59e750 (patch) | |
tree | 18f82ae36d58e12a07675c739c63bbf7c4f61cbc | |
parent | be9c16ea495d0e4e5b8d90e64bb481087a7c6b13 (diff) |
cid#1448241 silence Explicit null deferenced false positive
Change-Id: Iaf20e2c7c6f8502d902b41f2c109589aaa490a10
Reviewed-on: https://gerrit.libreoffice.org/78075
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | framework/source/uielement/genericstatusbarcontroller.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/draw/ximplink.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
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; } |