diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-03-24 02:15:11 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-03-24 02:15:11 +0100 |
commit | 4196e932bcebd00a581ded2045b3760a7f6571f6 (patch) | |
tree | 7ed78ce40c5c61e91874e44c97da9a000b9e1899 | |
parent | b36cdcf2d2a1630c1b987bd9d724de51935d1ac8 (diff) |
Catch deployment exception; extmgr is not functional
Change-Id: I2d26c40d9b1663d206dfd826014aaf9ba5219c88
-rw-r--r-- | comphelper/source/misc/backupfilehelper.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx index aa81039ad89c..d91fce269e07 100644 --- a/comphelper/source/misc/backupfilehelper.cxx +++ b/comphelper/source/misc/backupfilehelper.cxx @@ -578,10 +578,10 @@ namespace // create content from current extension configuration uno::Sequence< uno::Sequence< uno::Reference< deployment::XPackage > > > xAllPackages; uno::Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext(); - uno::Reference< deployment::XExtensionManager > m_xExtensionManager = deployment::ExtensionManager::get(xContext); - try { + uno::Reference< deployment::XExtensionManager > m_xExtensionManager = deployment::ExtensionManager::get(xContext); + xAllPackages = m_xExtensionManager->getAllExtensions(uno::Reference< task::XAbortChannel >(), uno::Reference< ucb::XCommandEnvironment >()); } @@ -603,6 +603,10 @@ namespace throw css::lang::WrappedTargetRuntimeException( e.Message, e.Context, anyEx ); } + catch (const uno::RuntimeException &) + { + return; + } for (sal_Int32 i = 0; i < xAllPackages.getLength(); ++i) { |