In UserProfileContext.IDP_REVIEW, NPE on UserModel#getEmail because UserModelDelegate#delegate is null

Signed-off-by: Réda Housni Alaoui <reda-alaoui@hey.com>
This commit is contained in:
Réda Housni Alaoui 2024-01-03 15:13:06 +01:00 committed by Pedro Igor
parent 057d8a00ac
commit a21e95c5ae

View file

@ -144,16 +144,31 @@ public class IdpReviewProfileAuthenticator extends AbstractIdpAuthenticator {
return userCtx.getFirstAttribute(name);
}
@Override
public String getFirstName() {
return userCtx.getFirstName();
}
@Override
public void setFirstName(String firstName) {
userCtx.setFirstName(firstName);
}
@Override
public String getEmail() {
return userCtx.getEmail();
}
@Override
public void setEmail(String email) {
userCtx.setEmail(email);
}
@Override
public String getLastName() {
return userCtx.getLastName();
}
@Override
public void setLastName(String lastName) {
userCtx.setLastName(lastName);