diff options
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/command/ConsoleCommandCompleter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/command/ConsoleCommandCompleter.java b/src/main/java/org/bukkit/craftbukkit/command/ConsoleCommandCompleter.java index c576f4f7..33e8ea02 100644 --- a/src/main/java/org/bukkit/craftbukkit/command/ConsoleCommandCompleter.java +++ b/src/main/java/org/bukkit/craftbukkit/command/ConsoleCommandCompleter.java @@ -24,7 +24,7 @@ public class ConsoleCommandCompleter implements Completer { protected List<String> evaluate() { List<String> offers = server.getCommandMap().tabComplete(server.getConsoleSender(), buffer); - TabCompleteEvent tabEvent = new TabCompleteEvent(server.getConsoleSender(), buffer, offers); + TabCompleteEvent tabEvent = new TabCompleteEvent(server.getConsoleSender(), buffer, (offers == null) ? Collections.EMPTY_LIST : offers); server.getPluginManager().callEvent(tabEvent); return tabEvent.isCancelled() ? Collections.EMPTY_LIST : tabEvent.getCompletions(); |