// Validate the ACS for use with this protocol.
if (!ACS || !XMLString::equals(getProtocolFamily(), ACS->getProtocolFamily())) {
- request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-ADFS ACS, using default ADFS ACS");
+ if (ACS)
+ request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-ADFS ACS, using default ADFS ACS");
ACS = app.getAssertionConsumerServiceByProtocol(getProtocolFamily());
if (!ACS)
throw ConfigurationException("Unable to locate an ADFS-compatible ACS in the configuration.");
// If we picked by index, validate the ACS for use with this protocol.
if (!ECP && (!ACS || !XMLString::equals(getProtocolFamily(), ACS->getProtocolFamily()))) {
- request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 2.0 ACS, using default SAML 2.0 ACS");
+ if (ACS)
+ request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 2.0 ACS, using default SAML 2.0 ACS");
ACS = app.getAssertionConsumerServiceByProtocol(getProtocolFamily());
if (!ACS)
throw ConfigurationException("Unable to locate a SAML 2.0 ACS endpoint to use for response.");
// If we picked by index, validate the ACS for use with this protocol.
if (!ACS || !XMLString::equals(getProtocolFamily(), ACS->getProtocolFamily())) {
- request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 1.x ACS, using default SAML 1.x ACS");
+ if (ACS)
+ request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 1.x ACS, using default SAML 1.x ACS");
ACS = app.getAssertionConsumerServiceByProtocol(getProtocolFamily());
if (!ACS)
throw ConfigurationException("Unable to locate a SAML 1.x ACS endpoint to use for response.");
// If we picked by index, validate the ACS for use with this protocol.
if (!ACS || !XMLString::equals(samlconstants::SAML11_PROTOCOL_ENUM, ACS->getProtocolFamily())) {
- request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 1.x ACS, using default SAML 1.x ACS");
+ if (ACS)
+ request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 1.x ACS, using default SAML 1.x ACS");
ACS = app.getAssertionConsumerServiceByProtocol(getProtocolFamily());
if (!ACS)
throw ConfigurationException("Unable to locate a SAML 1.x ACS endpoint to use for response.");