Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Null pointer exception if the value of synchronized attribute from SAML is empty.

anushap40132887
Level 4
Level 4

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?

0 Replies