coverity#1202822 Dereference null return value

Change-Id: I8630bfa0c4c557ab14c3b7448b6281072eebec8a
This commit is contained in:
Caolán McNamara
2014-04-17 08:52:09 +01:00
parent 4f4d8c8edb
commit 7bda5f04a6

View File

@@ -2256,9 +2256,12 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
else if( RES_DRAWFRMFMT == pFndFmt->Which() )
{
const SdrObject* pSObj = pFndFmt->FindSdrObject();
((SwFEShell*)this)->SelectObj( pSObj->GetCurrentBoundRect().Center() );
MakeSelVisible();
bRet = true;
if (pSObj)
{
((SwFEShell*)this)->SelectObj( pSObj->GetCurrentBoundRect().Center() );
MakeSelVisible();
bRet = true;
}
}
else // then is it a fly
{