git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2303
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
AuthnRequest authnRequest = (AuthnRequest) requestContext.getSamlRequest();
if (authnRequest.getNameIDPolicy() != null) {
nameFormat = authnRequest.getNameIDPolicy().getFormat();
- if (assertingPartySupportedFormats.contains(nameFormat)) {
+ if (!DatatypeHelper.isEmpty(nameFormat) && assertingPartySupportedFormats.contains(nameFormat)) {
nameFormats.add(nameFormat);
} else {
requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER_URI,