user response fix

This commit is contained in:
Filip Izydorczyk 2020-12-18 17:43:03 +01:00
parent 48c23ad4f8
commit 8dc94f84c0

View File

@ -14,8 +14,8 @@ public class UserResponse {
public UserResponse(User user) { public UserResponse(User user) {
this.id = user.getId(); this.id = user.getId();
this.name = user.getName(); this.name = user.getName() != null ? user.getName() : "";
this.surname = user.getSurname(); this.surname = user.getSurname() != null ? user.getSurname() : "";
this.email = user.getEmail(); this.email = user.getEmail();
} }