summaryrefslogtreecommitdiff
path: root/framework/source/uielement/macrosmenucontroller.cxx
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2010-05-17 10:08:23 +0200
committerCarsten Driesner <cd@openoffice.org>2010-05-17 10:08:23 +0200
commitb5054d32e6238b8f335f36f794604030a0ac1080 (patch)
treeea7c7d910d05d65a40550bb018639889bf2d2203 /framework/source/uielement/macrosmenucontroller.cxx
parent54f620054762e148e76c0727a57643ebc7d8c5bb (diff)
fwk139: Check popup menu pointer
Diffstat (limited to 'framework/source/uielement/macrosmenucontroller.cxx')
-rw-r--r--framework/source/uielement/macrosmenucontroller.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/source/uielement/macrosmenucontroller.cxx b/framework/source/uielement/macrosmenucontroller.cxx
index f0f5d52a47d6..9bb0f2cf9f90 100644
--- a/framework/source/uielement/macrosmenucontroller.cxx
+++ b/framework/source/uielement/macrosmenucontroller.cxx
@@ -92,6 +92,9 @@ void MacrosMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& rPo
if ( pVCLPopupMenu )
pPopupMenu = (PopupMenu *)pVCLPopupMenu->GetMenu();
+ if (!pPopupMenu)
+ return;
+
// insert basic
String aCommand = String::CreateFromAscii( ".uno:MacroDialog" );
String aDisplayName = RetrieveLabelFromCommand( aCommand );