Skip to content

Commit

Permalink
Fixed the ability to set empty messages with IslandChatEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 5, 2022
1 parent 7e795f9 commit 19c9e4f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -49,6 +49,7 @@ public String getMessage() {
*/
public void setMessage(String message) {
Preconditions.checkNotNull(message, "message parameter cannot be null.");
Preconditions.checkArgument(!message.isEmpty(), "message cannot be empty.");
this.message = message;
}

Expand Down

0 comments on commit 19c9e4f

Please sign in to comment.