Skip to content

Commit

Permalink
Handle null
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam committed Nov 6, 2024
1 parent b8cc8dc commit 459c584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/org/labkey/core/login/LoginController.java
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ public boolean handlePost(SetPasswordForm form, BindException errors) throws Exc
}
catch (InvalidEmailException e)
{
errors.rejectValue("email", ERROR_MSG, "'" + form.getEmail() + "' is not a valid email address. Please enter an email address in this form: [email protected]");
errors.rejectValue("email", ERROR_MSG, "'" + StringUtils.trimToEmpty(form.getEmail()) + "' is not a valid email address. Please enter an email address in this form: [email protected]");
}

return success;
Expand Down

0 comments on commit 459c584

Please sign in to comment.