summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 12:50:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 14:48:44 +0000
commit6e73260a306b3b711f110f0d36dfbddb6623d102 (patch)
tree5ecee6eafc95e6cae152f639b2114b94ff84ac86 /framework
parentb78efa182a1130935f699c5f8972895e34a8bd87 (diff)
coverity#1169845 Uncaught exception
Change-Id: Ifec059d66b92233fbff967a5da6fdc88915eefb1
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/popuptoolbarcontroller.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index debc1816ada7..36c38e209ba8 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -38,6 +38,7 @@
#include <com/sun/star/frame/XPopupMenuController.hpp>
#include <com/sun/star/frame/XUIControllerFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
+#include <com/sun/star/ucb/CommandFailedException.hpp>
#define UNO_COMMAND_RECENT_FILE_LIST ".uno:RecentFileList"
@@ -405,9 +406,15 @@ void SAL_CALL NewToolbarController::statusChanged( const css::frame::FeatureStat
{
OUString aState;
rEvent.State >>= aState;
- // set the image even if the state is not a string
- // this will set the image of the default module
- setItemImage( aState );
+ try
+ {
+ // set the image even if the state is not a string
+ // this will set the image of the default module
+ setItemImage( aState );
+ }
+ catch (const css::ucb::CommandFailedException&)
+ {
+ }
}
enable( rEvent.IsEnabled );