mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Add nullcheck to passwordAgePredicate
Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
This commit is contained in:
parent
d7d2a76676
commit
02691a8d76
@ -147,7 +147,8 @@ public class PasswordCredentialProvider implements CredentialProvider<PasswordCr
|
||||
}
|
||||
|
||||
private boolean passwordAgePredicate(CredentialModel credential, long passwordMaxAgeMillis) {
|
||||
return credential.getCreatedDate() < passwordMaxAgeMillis;
|
||||
long createdDate = credential.getCreatedDate() == null ? Long.MIN_VALUE : credential.getCreatedDate();
|
||||
return createdDate < passwordMaxAgeMillis;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user