Kaydet (Commit) 11e17447 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705041 Dereference after null check

Change-Id: I94b1f0e6d1f8bdf7929b68682727e8b1fdde67d2
üst f37f08c9
......@@ -832,9 +832,12 @@ void SwGlobalTree::ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry
case CTX_EDIT_LINK:
{
OSL_ENSURE(pCont, "edit without entry ? " );
SfxStringItem aName(FN_EDIT_REGION,
pCont->GetSection()->GetSectionName());
rDispatch.Execute(FN_EDIT_REGION, SFX_CALLMODE_ASYNCHRON, &aName, 0L);
if (pCont)
{
SfxStringItem aName(FN_EDIT_REGION,
pCont->GetSection()->GetSectionName());
rDispatch.Execute(FN_EDIT_REGION, SFX_CALLMODE_ASYNCHRON, &aName, 0L);
}
}
break;
case CTX_DELETE:
......
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