Skip to content

Commit

Permalink
fix failing email validation for api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwinship committed Nov 15, 2024
1 parent b2d57f5 commit a6d835c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ public String getEmail() {
}

public void setEmail(String email) {
this.email = email;
// ValidateEmail requires NULL or valid email. Empty String will fail validation
this.email = (email == null || email.trim().isEmpty()) ? null : email;
}

public Guestbook getGuestbook() {
Expand Down

0 comments on commit a6d835c

Please sign in to comment.