From ab93e1b483d7af9bcac997e838e5a62a924e28c3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Jan 2012 09:15:19 +0100 Subject: [PATCH] Check for xcu that should rather be . --- configmgr/source/xcuparser.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configmgr/source/xcuparser.cxx b/configmgr/source/xcuparser.cxx index 6ee5c82a6795..2d6592346a39 100644 --- a/configmgr/source/xcuparser.cxx +++ b/configmgr/source/xcuparser.cxx @@ -934,6 +934,16 @@ void XcuParser::handleGroupNode( state_.push(State(true)); // ignored return; } + Node::Kind kind = child->kind(); + if (kind != Node::KIND_GROUP && kind != Node::KIND_SET) { + throw css::uno::RuntimeException( + (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("bad \"")) + + name + + rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("\" of non group/set kind in ")) + + reader.getUrl()), + css::uno::Reference< css::uno::XInterface >()); + } if (op != OPERATION_MODIFY && op != OPERATION_FUSE) { throw css::uno::RuntimeException( (rtl::OUString(