coverity#736147 Dereference null return value
Change-Id: Ibcf624be5787b0bf8fd7b0697a4dc9377a22d825
This commit is contained in:
@@ -183,10 +183,14 @@ void FuSummaryPage::DoExecute( SfxRequest& )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pSummaryPage)
|
if (!pSummaryPage)
|
||||||
{
|
return;
|
||||||
|
|
||||||
SdrTextObj* pTextObj = (SdrTextObj*) pSummaryPage->GetPresObj(PRESOBJ_OUTLINE);
|
SdrTextObj* pTextObj = (SdrTextObj*) pSummaryPage->GetPresObj(PRESOBJ_OUTLINE);
|
||||||
|
|
||||||
|
if (!pTextObj)
|
||||||
|
return;
|
||||||
|
|
||||||
// remove hard break- and character attributes
|
// remove hard break- and character attributes
|
||||||
SfxItemSet aEmptyEEAttr(mpDoc->GetPool(), EE_ITEMS_START, EE_ITEMS_END);
|
SfxItemSet aEmptyEEAttr(mpDoc->GetPool(), EE_ITEMS_START, EE_ITEMS_END);
|
||||||
sal_Int32 nParaCount = pOutl->GetParagraphCount();
|
sal_Int32 nParaCount = pOutl->GetParagraphCount();
|
||||||
@@ -217,7 +221,6 @@ void FuSummaryPage::DoExecute( SfxRequest& )
|
|||||||
{
|
{
|
||||||
pDrawViewShell->SwitchPage( (pSummaryPage->GetPageNum() - 1) / 2);
|
pDrawViewShell->SwitchPage( (pSummaryPage->GetPageNum() - 1) / 2);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user