diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 12:43:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 14:16:12 +0100 |
commit | 7ebbd60b140c7b1ea4ad707d22d5c12000a3daa4 (patch) | |
tree | 52c8b61594ac064e3beb75b824df7eebc66f3175 /sd | |
parent | df184a5352c37b839e6dea9c7145aa8501eb74fc (diff) |
coverity#705475 Dereference null return value
Change-Id: I75c4525bf6e04ac25c0d9ab2f926faf40b82739b
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuexpand.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/func/fuexpand.cxx b/sd/source/ui/func/fuexpand.cxx index 4ab706da60da..2467e1a42e5c 100644 --- a/sd/source/ui/func/fuexpand.cxx +++ b/sd/source/ui/func/fuexpand.cxx @@ -180,6 +180,9 @@ void FuExpandPage::DoExecute( SfxRequest& ) // create title text objects SdrTextObj* pTextObj = (SdrTextObj*) pPage->GetPresObj(PRESOBJ_TITLE); + assert(pTextObj); + if (!pTextObj) + continue; OutlinerParaObject* pOutlinerParaObject = pOutl->CreateParaObject( nParaPos, 1); pOutlinerParaObject->SetOutlinerMode(OUTLINERMODE_TITLEOBJECT); |