diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-08-06 10:31:21 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-06 10:33:47 +0100 |
commit | f1d1986a97aa9812dd045f6864a61964b7b9301a (patch) | |
tree | 3e61fe84b8cdf7d58b963e416a11eade98afd1cd /linguistic/source | |
parent | 5f09718dba16ac7eb8f0917051f1ea532940a788 (diff) |
android: linguistic should cope with a missing extension manager
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 6dc2d69a34ae..0a5de43332f2 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -491,8 +491,12 @@ LngSvcMgr::LngSvcMgr() // request to be notified if an extension has been added/removed uno::Reference<uno::XComponentContext> xContext(comphelper::getProcessComponentContext()); - uno::Reference<deployment::XExtensionManager> xExtensionManager( - deployment::ExtensionManager::get(xContext)); + uno::Reference<deployment::XExtensionManager> xExtensionManager; + try { + xExtensionManager = deployment::ExtensionManager::get(xContext); + } catch ( const deployment::DeploymentException & ) { + SAL_WARN( "linguistic", "no extension manager - should fire on mobile only" ); + } if (xExtensionManager.is()) { xMB = uno::Reference<util::XModifyBroadcaster>(xExtensionManager, uno::UNO_QUERY_THROW); |