diff options
author | Carsten Driesner <cd@openoffice.org> | 2010-05-17 10:08:23 +0200 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2010-05-17 10:08:23 +0200 |
commit | b5054d32e6238b8f335f36f794604030a0ac1080 (patch) | |
tree | ea7c7d910d05d65a40550bb018639889bf2d2203 | |
parent | 54f620054762e148e76c0727a57643ebc7d8c5bb (diff) |
fwk139: Check popup menu pointer
-rw-r--r-- | framework/source/uielement/macrosmenucontroller.cxx | 3 |
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 ); |