LPPE breaking on the (ldap) domaint that don't have password policy

Description

NullPointerExceptions for users that are in a different subdomain that don't have password policy set up

ava.lang.NullPointerException
at org.joda.time.format.DateTimeFormatterBuilder$NumberFormatter.parseInto(DateTimeFormatterBuilder.java:1
292)
at org.joda.time.format.DateTimeFormatterBuilder$Composite.parseInto(DateTimeFormatterBuilder.java:2695)
at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:846)
at org.joda.time.DateTime.parse(DateTime.java:144)
at org.jasig.cas.adaptors.ldap.LdapPasswordPolicyEnforcer.formatDateByPattern(LdapPasswordPolicyEnforcer.j
ava:394)
at org.jasig.cas.adaptors.ldap.LdapPasswordPolicyEnforcer.getExpirationDateToUse(LdapPasswordPolicyEnforce
r.java:408)
at org.jasig.cas.adaptors.ldap.LdapPasswordPolicyEnforcer.getNumberOfDaysToPasswordExpirationDate(LdapPass
wordPolicyEnforcer.java:225)

Environment

None

Status

Assignee

Misagh Moayyed

Reporter

bramantyo aribowo

Labels

None

Estimated End Date

None

Audience

None

Fix versions

Affects versions

3.5.1
3.5.0

Priority

Major