X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=saml%2Fsaml2%2Fmetadata%2Fimpl%2FMetadataImpl.cpp;h=91615d97904401887cf8338cc8bc4dc0e72c3e50;hb=3bed08b2d983bce1c808ee494f8c15e08eb0f246;hp=c7088eafb43170d25d71f0b396c314404ad2e1d2;hpb=4e738085d4420181f353a4affd7cc721f64b14d2;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/saml2/metadata/impl/MetadataImpl.cpp b/saml/saml2/metadata/impl/MetadataImpl.cpp index c7088ea..91615d9 100644 --- a/saml/saml2/metadata/impl/MetadataImpl.cpp +++ b/saml/saml2/metadata/impl/MetadataImpl.cpp @@ -965,6 +965,8 @@ namespace opensaml { IMPL_TYPED_CHILDREN(ContactPerson,m_pos_ContactPerson); bool hasSupport(const XMLCh* protocol) const { + if (!protocol || !*protocol) + return true; if (m_ProtocolSupportEnumeration) { // Look for first character. unsigned int len=XMLString::stringLen(protocol);