summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-02-20 12:31:17 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2017-02-21 01:40:39 +0200
commiteed06b010ce0c4723a0594df31f08c21fe6faf8d (patch)
tree654b8b6ea37151adb51415cc554bd48d829976b8
parent5ccea065247dffe1c29923619b39d63b2e1c5911 (diff)
Ignore exceptions in identify
Change-Id: Iccee29668f5d619c4726d09baa4503c6ae38e84b
-rw-r--r--vcl/source/helper/commandinfoprovider.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx
index 3b22ebb7baf4..dad5b581c5d4 100644
--- a/vcl/source/helper/commandinfoprovider.cxx
+++ b/vcl/source/helper/commandinfoprovider.cxx
@@ -395,7 +395,15 @@ bool IsExperimental(const OUString& rsCommandName,
OUString const GetModuleIdentifier(const Reference<frame::XFrame>& rxFrame)
{
Reference<frame::XModuleManager2> xModuleManager = frame::ModuleManager::create(comphelper::getProcessComponentContext());
- return xModuleManager->identify(rxFrame);
+
+ try
+ {
+ return xModuleManager->identify(rxFrame);
+ }
+ catch (const Exception&)
+ {}
+
+ return OUString();
}
} }