Kaydet (Commit) 0f6c6baf authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242481 Dereference null return value

Change-Id: I21e6bdd643d898a3515a96e4c9c17c2d6f98b0e4
üst 2e048774
......@@ -543,8 +543,8 @@ SbxObject* cloneTypeObjectImpl( const SbxObject& rTypeObj )
SbxDimArray* pSource = PTR_CAST(SbxDimArray,pParObj);
SbxDimArray* pDest = new SbxDimArray( pVar->GetType() );
pDest->setHasFixedSize( pSource->hasFixedSize() );
if ( pSource->GetDims() && pSource->hasFixedSize() )
pDest->setHasFixedSize( pSource ? pSource->hasFixedSize() : false );
if ( pSource && pSource->GetDims() && pSource->hasFixedSize() )
{
sal_Int32 lb = 0;
sal_Int32 ub = 0;
......
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