Kaydet (Commit) 44d23b2c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705508 Dereference null return value

Change-Id: Idbd70944ff637de32f5d2d11089efebe22692267
üst df9cd33b
...@@ -3335,11 +3335,12 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) ...@@ -3335,11 +3335,12 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName)
SwFrmFmt* pFmt = GetFrmFmt(); SwFrmFmt* pFmt = GetFrmFmt();
const SfxItemPropertySimpleEntry* pEntry = const SfxItemPropertySimpleEntry* pEntry =
m_pPropSet->getPropertyMap().getByName(rPropertyName); m_pPropSet->getPropertyMap().getByName(rPropertyName);
if (!pEntry)
throw beans::UnknownPropertyException(OUString( "Unknown property: " ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if(pFmt) if(pFmt)
{ {
if (!pEntry)
throw beans::UnknownPropertyException(OUString( "Unknown property: " ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if(0xFF == pEntry->nMemberId) if(0xFF == pEntry->nMemberId)
{ {
aRet = lcl_GetSpecialProperty(pFmt, pEntry ); aRet = lcl_GetSpecialProperty(pFmt, pEntry );
......
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