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>
This commit is contained in:
Caolán McNamara
2019-08-25 11:32:38 +02:00
parent be9c16ea49
commit 3975c4e85f
2 changed files with 2 additions and 0 deletions
@@ -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;
+1
View File
@@ -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;
}