From 53aa021001d065c100cf0f1f355b0a45994bb3ec Mon Sep 17 00:00:00 2001 From: Mariela Bonilla Date: Sun, 18 Jul 2021 21:57:02 -0600 Subject: [PATCH] Modificacion si un firstName esta nulo --- src/main/java/org/datasurvey/web/rest/AccountResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/datasurvey/web/rest/AccountResource.java b/src/main/java/org/datasurvey/web/rest/AccountResource.java index e175751..361be3a 100644 --- a/src/main/java/org/datasurvey/web/rest/AccountResource.java +++ b/src/main/java/org/datasurvey/web/rest/AccountResource.java @@ -168,7 +168,7 @@ public class AccountResource { public void requestPasswordReset(@RequestBody String mail) { Optional user = userService.requestPasswordReset(mail); if (user.isPresent()) { - if (!user.get().getFirstName().equals("IsGoogle")) { + if (user.get().getFirstName() == null || (!user.get().getFirstName().equals("IsGoogle"))) { mailService.sendPasswordResetMail(user.get()); } else { throw new UserIsGoogleException();