coverity#704639 Dereference after null check

Change-Id: Ic176da3b05337678dd12fd23a726b958577cbefb
This commit is contained in:
Caolán McNamara
2014-02-23 13:21:45 +00:00
parent e4d8872d07
commit fe56219fcc

View File

@@ -6116,7 +6116,7 @@ sal_Bool SvxMSDffManager::GetShape(sal_uLong nId, SdrObject*& rpShape,
// restore old alte FilePos of the stream(s)
rStCtrl.Seek( nOldPosCtrl );
if( &rStCtrl != pStData )
if( &rStCtrl != pStData && pStData )
pStData->Seek( nOldPosData );
return ( 0 != rpShape );
}