mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Fixed AIOOBE when entering a space into console and hitting enter.
This commit is contained in:
parent
98b331ba86
commit
cc3f7710ef
1 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,11 @@ public final class SimpleCommandMap implements CommandMap {
|
|||
*/
|
||||
public boolean dispatch(CommandSender sender, String commandLine) {
|
||||
String[] args = commandLine.split(" ");
|
||||
|
||||
if (args.length == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
String sentCommandLabel = args[0].toLowerCase();
|
||||
|
||||
args = Arrays_copyOfRange(args, 1, args.length);
|
||||
|
|
Loading…
Add table
Reference in a new issue