Allow for fully empty RequestMapper content.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 2 Sep 2010 21:01:58 +0000 (21:01 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 2 Sep 2010 21:01:58 +0000 (21:01 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3311 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/impl/XMLRequestMapper.cpp

index 9e0657f..27153bd 100644 (file)
@@ -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.