Trying to parse legacy rdb as XML can cause InvalidRegistryException, too
This commit is contained in:
parent
b0547b358b
commit
015283bb50
@ -1276,9 +1276,11 @@ void ServiceManager::readRdbFile(rtl::OUString const & uri, bool optional) {
|
||||
}
|
||||
SAL_INFO("cppuhelper", "Ignored optional " << uri);
|
||||
} catch (css::registry::InvalidRegistryException & e) {
|
||||
throw css::uno::DeploymentException(
|
||||
"InvalidRegistryException: " + e.Message,
|
||||
static_cast< cppu::OWeakObject * >(this));
|
||||
if (!readLegacyRdbFile(uri)) {
|
||||
throw css::uno::DeploymentException(
|
||||
"InvalidRegistryException: " + e.Message,
|
||||
static_cast< cppu::OWeakObject * >(this));
|
||||
}
|
||||
} catch (css::uno::RuntimeException &) {
|
||||
if (!readLegacyRdbFile(uri)) {
|
||||
throw;
|
||||
|
Loading…
x
Reference in New Issue
Block a user