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); return userCtx.getFirstAttribute(name);
} }
@Override
public String getFirstName() {
return userCtx.getFirstName();
}
@Override @Override
public void setFirstName(String firstName) { public void setFirstName(String firstName) {
userCtx.setFirstName(firstName); userCtx.setFirstName(firstName);
} }
@Override
public String getEmail() {
return userCtx.getEmail();
}
@Override @Override
public void setEmail(String email) { public void setEmail(String email) {
userCtx.setEmail(email); userCtx.setEmail(email);
} }
@Override
public String getLastName() {
return userCtx.getLastName();
}
@Override @Override
public void setLastName(String lastName) { public void setLastName(String lastName) {
userCtx.setLastName(lastName); userCtx.setLastName(lastName);