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.

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"



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(

at com.adobe.granite.auth.saml.SamlAuthenticationHandler.handleLogin(

at com.adobe.granite.auth.saml.SamlAuthenticationHandler.extractCredentials(

Is there any option in AEM side to handle this scenario?

0 Replies