13
0
geforkt von Mirrors/Paper

Standardise empty string as null / not set

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2018-07-16 16:20:26 +10:00
Ursprung 9856b80c22
Commit a04c494980

Datei anzeigen

@ -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) {