git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1499
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
String[] availableMappings = relyingParty.getNameMapperIds();
- SPSSODescriptor role = descriptor.getSPSSODescriptor("urn:oasis:names:tc:SAML:1.1:protocol");
-
// If we have preferred Name Identifier formats from the metadata, see if the we can find one that is configured
// for this relying party
- if (role != null) {
+ SPSSODescriptor role;
+ if (descriptor != null
+ && (role = descriptor.getSPSSODescriptor("urn:oasis:names:tc:SAML:1.1:protocol")) != null) {
Iterator spPreferredFormats = role.getNameIDFormats();
while (spPreferredFormats.hasNext()) {