From 08a08dec6e62da86b8e1746bb205cb32ee4c7f98 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 14 Jun 2011 10:46:42 +0100 Subject: [PATCH] don't throw an exception on unexpected attributes in XML rdb files --- stoc/source/simpleregistry/textualservices.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/stoc/source/simpleregistry/textualservices.cxx b/stoc/source/simpleregistry/textualservices.cxx index 5a50a5aa62c6..483c8ba5bc4e 100644 --- a/stoc/source/simpleregistry/textualservices.cxx +++ b/stoc/source/simpleregistry/textualservices.cxx @@ -283,13 +283,7 @@ void Parser::handleComponent() { css::uno::Reference< css::uno::XInterface >()); } } else { - throw css::registry::InvalidRegistryException( - (reader_.getUrl() + - rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM( - ": expected attribute \"uri\" or" - " \"loader\""))), - css::uno::Reference< css::uno::XInterface >()); + OSL_FAIL ("unexpected component attribute, expected 'uri' or 'loader'"); } } if (attrUri_.getLength() == 0) {