coverity#736147 Dereference null return value

Change-Id: Ibcf624be5787b0bf8fd7b0697a4dc9377a22d825
This commit is contained in:
Caolán McNamara
2014-03-28 10:30:30 +00:00
parent 10787356d9
commit f7d3344fdf

View File

@@ -183,10 +183,14 @@ void FuSummaryPage::DoExecute( SfxRequest& )
}
}
if (pSummaryPage)
{
if (!pSummaryPage)
return;
SdrTextObj* pTextObj = (SdrTextObj*) pSummaryPage->GetPresObj(PRESOBJ_OUTLINE);
if (!pTextObj)
return;
// remove hard break- and character attributes
SfxItemSet aEmptyEEAttr(mpDoc->GetPool(), EE_ITEMS_START, EE_ITEMS_END);
sal_Int32 nParaCount = pOutl->GetParagraphCount();
@@ -217,7 +221,6 @@ void FuSummaryPage::DoExecute( SfxRequest& )
{
pDrawViewShell->SwitchPage( (pSummaryPage->GetPageNum() - 1) / 2);
}
}
}