summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-07 16:06:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-07 18:00:51 +0100
commit4e77d6251ebf12f2f9a24d64c0285cb3fc6aad42 (patch)
tree24e2403c0f1723ba60c9106ec34f4c24dc5a4939 /sw
parentf97eb186bf44d01073c010d6875b0bc4c889b17e (diff)
coverity#705041 Dereference after null check
Change-Id: I71b9fa34ee6d885381eede39d8b753f228f1196c
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/utlui/glbltree.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx
index 34fdd1c27fdb..276a930d96bd 100644
--- a/sw/source/uibase/utlui/glbltree.cxx
+++ b/sw/source/uibase/utlui/glbltree.cxx
@@ -826,7 +826,10 @@ void SwGlobalTree::ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry
case CTX_EDIT:
{
OSL_ENSURE(pCont, "edit without entry ? " );
- EditContent(pCont);
+ if (pCont)
+ {
+ EditContent(pCont);
+ }
}
break;
case CTX_EDIT_LINK: