user response fix
This commit is contained in:
parent
48c23ad4f8
commit
8dc94f84c0
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user