summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-14 13:07:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-14 13:42:18 +0100
commit4f7cb49f93a55215c48f9e98f293b08293b56036 (patch)
tree00600fcd853e929f94a42de8bafc6abd73832096 /sfx2/source
parent950995222509f059037ff7d73e09d5d9ea2b9b2a (diff)
coverity#735851 Dereference after null check
Change-Id: I8f6e5803efe0db06d081903b9b852d1a1f881f7b
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/menu/virtmenu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx
index bd81d699a48c..e6e4d8f1813a 100644
--- a/sfx2/source/menu/virtmenu.cxx
+++ b/sfx2/source/menu/virtmenu.cxx
@@ -901,7 +901,7 @@ IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu )
{
// Find the VirtualMenu for the SubMenu and if possible, bind a
// VirtualMenu
- bool bRet = Bind_Impl( pMenu );
+ bool bRet = pMenu ? Bind_Impl(pMenu) : false;
#ifdef DBG_UTIL
if ( !bRet)
DBG_WARNING( "W1: Virtual menu could not be created!" );