Skip to content

Commit

Permalink
Improve null fix for empty nicknames
Browse files Browse the repository at this point in the history
  • Loading branch information
zapek committed Dec 28, 2024
1 parent 03e35d2 commit fad4557
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ChatRoomUserEvent()
public ChatRoomUserEvent(GxsId gxsId, String nickname, long identityId)
{
this.gxsId = gxsId;
this.nickname = nickname != null ? nickname : ""; // Workaround against users having a null nickname
this.nickname = nickname;
this.identityId = identityId;
}

Expand All @@ -51,7 +51,7 @@ public void setGxsId(GxsId gxsId)

public String getNickname()
{
return nickname;
return nickname != null ? nickname : ""; // Workaround against users having a null nickname
}

public void setNickname(String nickname)
Expand Down

0 comments on commit fad4557

Please sign in to comment.