From: Scott Cantor Date: Thu, 2 Sep 2010 21:01:58 +0000 (+0000) Subject: Allow for fully empty RequestMapper content. X-Git-Tag: 2.4RC1~53 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=b53e8c240004a9bae0292cc0e4c64071908e5ced Allow for fully empty RequestMapper content. --- diff --git a/shibsp/impl/XMLRequestMapper.cpp b/shibsp/impl/XMLRequestMapper.cpp index 9e0657f..27153bd 100644 --- a/shibsp/impl/XMLRequestMapper.cpp +++ b/shibsp/impl/XMLRequestMapper.cpp @@ -483,7 +483,7 @@ XMLRequestMapperImpl::XMLRequestMapperImpl(const DOMElement* e, Category& log) : static const XMLCh _id[] = UNICODE_LITERAL_2(i,d); static const XMLCh _RequestMap[] = UNICODE_LITERAL_10(R,e,q,u,e,s,t,M,a,p); - if (!XMLHelper::isNodeNamed(e, SHIB2SPCONFIG_NS, _RequestMap)) + if (e && !XMLHelper::isNodeNamed(e, SHIB2SPCONFIG_NS, _RequestMap)) throw ConfigurationException("XML RequestMapper requires conf:RequestMap at root of configuration."); // Load the property set.