diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-22 10:14:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-22 15:07:44 +0200 |
commit | e92f7906527749f5b8148796d0bfb1a67387c4f0 (patch) | |
tree | d9b8abd3b968d0b6be0b0b9455e0899076286d76 /sw/source/filter/html | |
parent | 28f9791b9649f700971624700aa0ecc25b2eae79 (diff) |
cid#1509244 silence Dereference null return value
Change-Id: I2dc9baee3e42712f6bf09aed5243e451aee6018a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138675
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/html')
-rw-r--r-- | sw/source/filter/html/htmlplug.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmlplug.cxx b/sw/source/filter/html/htmlplug.cxx index d39af79a9d6f..acc1fde0d2b2 100644 --- a/sw/source/filter/html/htmlplug.cxx +++ b/sw/source/filter/html/htmlplug.cxx @@ -1170,10 +1170,12 @@ void SwHTMLParser::InsertFloatingFrame() sal_uInt16 SwHTMLWriter::GuessOLENodeFrameType( const SwNode& rNode ) { - SwOLEObj& rObj = const_cast<SwOLENode*>(rNode.GetOLENode())->GetOLEObj(); - SwHTMLFrameType eType = HTML_FRMTYPE_OLE; + SwOLENode* pOLENode = const_cast<SwOLENode*>(rNode.GetOLENode()); + assert(pOLENode && "must exist"); + SwOLEObj& rObj = pOLENode->GetOLEObj(); + uno::Reference < embed::XClassifiedObject > xClass = rObj.GetOleRef(); SvGlobalName aClass( xClass->getClassID() ); if( aClass == SvGlobalName( SO3_PLUGIN_CLASSID ) ) |