summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-06-09 20:47:39 +1000
committermd_5 <git@md-5.net>2016-06-09 20:47:39 +1000
commit5fc80916f55137407ebbed2fd2b8f5fc5f5676a3 (patch)
tree7083e57f2e7d14c19fbef851c8198dbc4426394c /src/main/java/org
parent5a55e13868b90c44214542471a7ea9368be371e7 (diff)
downloadcraftbukkit-5fc80916f55137407ebbed2fd2b8f5fc5f5676a3.tar
craftbukkit-5fc80916f55137407ebbed2fd2b8f5fc5f5676a3.tar.gz
craftbukkit-5fc80916f55137407ebbed2fd2b8f5fc5f5676a3.tar.lz
craftbukkit-5fc80916f55137407ebbed2fd2b8f5fc5f5676a3.tar.xz
craftbukkit-5fc80916f55137407ebbed2fd2b8f5fc5f5676a3.zip
SPIGOT-2369: Tab completing non existant command
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/command/ConsoleCommandCompleter.java2
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();