X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2FSAMLConfig.cpp;fp=saml%2FSAMLConfig.cpp;h=d18d56298defd5bb359acf68449621406a60be24;hb=59f8e99deb7181862dbc717e2ee74542667e19d0;hp=43deb15e24317089056fa1189bd4dccaaef4bcbb;hpb=b200befa360fe74b3b8865a654f54a6647723755;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/SAMLConfig.cpp b/saml/SAMLConfig.cpp index 43deb15..d18d562 100644 --- a/saml/SAMLConfig.cpp +++ b/saml/SAMLConfig.cpp @@ -301,7 +301,8 @@ void opensaml::annotateException(XMLToolingException* e, const EntityDescriptor* if (entity) { const XMLObject* r = find_if( entity->getOrderedChildren(), - (ll_dynamic_cast(_1) != nullptr && lambda::bind(isValid, ll_dynamic_cast(_1), now)) + (ll_dynamic_cast(_1) != ((const RoleDescriptor*)nullptr) && + lambda::bind(isValid, ll_dynamic_cast(_1), now)) ); if (r) role = dynamic_cast(r);