diff options
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/xcuparser.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 <node> \"")) + + 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( |