Kaydet (Commit) 51c44302 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704732 Dereference after null check

Change-Id: Ida02c1d9f0bc35d115f3762d5c360231ab800b23
üst 4d3fc566
......@@ -372,7 +372,7 @@ SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, sal_Bool bVertical, const
nDestPageNum -= 1;
}
if(nDestPageNum < pModel->GetPageCount())
if (pModel && nDestPageNum < pModel->GetPageCount())
{
pSdrObj = new SdrPageObj(pModel->GetPage(nDestPageNum));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment