Kaydet (Commit) 015283bb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Trying to parse legacy rdb as XML can cause InvalidRegistryException, too

üst b0547b35
...@@ -1276,9 +1276,11 @@ void ServiceManager::readRdbFile(rtl::OUString const & uri, bool optional) { ...@@ -1276,9 +1276,11 @@ void ServiceManager::readRdbFile(rtl::OUString const & uri, bool optional) {
} }
SAL_INFO("cppuhelper", "Ignored optional " << uri); SAL_INFO("cppuhelper", "Ignored optional " << uri);
} catch (css::registry::InvalidRegistryException & e) { } catch (css::registry::InvalidRegistryException & e) {
throw css::uno::DeploymentException( if (!readLegacyRdbFile(uri)) {
"InvalidRegistryException: " + e.Message, throw css::uno::DeploymentException(
static_cast< cppu::OWeakObject * >(this)); "InvalidRegistryException: " + e.Message,
static_cast< cppu::OWeakObject * >(this));
}
} catch (css::uno::RuntimeException &) { } catch (css::uno::RuntimeException &) {
if (!readLegacyRdbFile(uri)) { if (!readLegacyRdbFile(uri)) {
throw; throw;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment