Kaydet (Commit) 2308b417 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704772 Dereference after null check

Change-Id: Ic0c56aa9e6f19828df3e81266cc4740167012815
üst d60ecf4b
...@@ -1347,7 +1347,10 @@ Reference< drawing::XShape > SdGenericDrawPage::_CreateShape( SdrObject *pObj ) ...@@ -1347,7 +1347,10 @@ Reference< drawing::XShape > SdGenericDrawPage::_CreateShape( SdrObject *pObj )
DBG_ASSERT( GetPage(), "SdGenericDrawPage::_CreateShape(), can't create shape for disposed page!" ); DBG_ASSERT( GetPage(), "SdGenericDrawPage::_CreateShape(), can't create shape for disposed page!" );
DBG_ASSERT( pObj, "SdGenericDrawPage::_CreateShape(), invalid call with pObj == 0!" ); DBG_ASSERT( pObj, "SdGenericDrawPage::_CreateShape(), invalid call with pObj == 0!" );
if( GetPage() && pObj ) if (!pObj)
return Reference< drawing::XShape >();
if (GetPage())
{ {
PresObjKind eKind = GetPage()->GetPresObjKind(pObj); PresObjKind eKind = GetPage()->GetPresObjKind(pObj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment