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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 10
Level 3
anushap40132887
Level 3

Likes

8 likes

Total Posts

52 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 3
anushap40132887
Level 3

Likes

8 likes

Total Posts

52 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
anushap40132887
Level 3

12-10-2018

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?