diff options
author | md_5 <git@md-5.net> | 2018-07-16 16:20:26 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-16 16:20:26 +1000 |
commit | 22e52292387378a106e26d496d403d9a300e56bb (patch) | |
tree | e30cdc013e4e64479d92e8fd910cdbe622ab9b8a /src/main/java/org | |
parent | b6a757dec87043268807b45769b77fd0cb981962 (diff) | |
download | craftbukkit-22e52292387378a106e26d496d403d9a300e56bb.tar craftbukkit-22e52292387378a106e26d496d403d9a300e56bb.tar.gz craftbukkit-22e52292387378a106e26d496d403d9a300e56bb.tar.lz craftbukkit-22e52292387378a106e26d496d403d9a300e56bb.tar.xz craftbukkit-22e52292387378a106e26d496d403d9a300e56bb.zip |
Standardise empty string as null / not set
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java index da2d070e..9b62ed43 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java +++ b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java @@ -139,7 +139,7 @@ public final class CraftChatMessage { } public static IChatBaseComponent fromStringOrNull(String message) { - return (message == null) ? null : fromString(message)[0]; + return (message == null || message.isEmpty()) ? null : fromString(message)[0]; } public static IChatBaseComponent[] fromString(String message) { |