We are using Adobe Granite SAML 2.0 authentication handler. Below given is the response from saml, if the value of any synchronized attribute is empty.
<saml2:Attribute Name="qwerty"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"></saml2:Attribute>
But we are getting null pointer exception in AEM in this scenario.
11.10.2018 02:28:09.478 *ERROR* [qtp1162550033-54746] org.apache.felix.http.jetty Exception while processing request to /saml_login (java.lang.NullPointerException)
java.lang.NullPointerException: null
at com.adobe.granite.auth.saml.SamlAuthenticationHandler.synchronizeAttributes(SamlAuthenticationHandler.java:974)
at com.adobe.granite.auth.saml.SamlAuthenticationHandler.handleLogin(SamlAuthenticationHandler.java:819)
at com.adobe.granite.auth.saml.SamlAuthenticationHandler.extractCredentials(SamlAuthenticationHandler.java:457)
Is there any option in AEM side to handle this scenario?