summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
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!" );