diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-04-23 18:41:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-04-23 18:41:29 +0200 |
commit | 015283bb50e8d0d8127ea7c06deda202441f051e (patch) | |
tree | 2dc1fa3e0756473a11395153169726d93a73b01d /cppuhelper/source | |
parent | b0547b358b2262a7f75b932ba37f35155a5c2406 (diff) |
Trying to parse legacy rdb as XML can cause InvalidRegistryException, too
Diffstat (limited to 'cppuhelper/source')
-rw-r--r-- | cppuhelper/source/defaultbootstrap.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx index a11f220358ec..f156ce15c8e9 100644 --- a/cppuhelper/source/defaultbootstrap.cxx +++ b/cppuhelper/source/defaultbootstrap.cxx @@ -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; |