From 7deba1c6064bfed50b15075895d19aced4ee5c7a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 5 Jan 2019 16:21:07 +1100 Subject: [PATCH] Check for blank OfflinePlayer Names --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index f86cc694bd..6d026b70e8 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1318,6 +1318,7 @@ public final class CraftServer implements Server { @Deprecated public OfflinePlayer getOfflinePlayer(String name) { Validate.notNull(name, "Name cannot be null"); + Validate.notEmpty(name, "Name cannot be empty"); OfflinePlayer result = getPlayerExact(name); if (result == null) {