Check for an empty buffer in async tab complete handler (#1949)

This commit is contained in:
Luck 2020-01-25 12:25:00 +00:00
parent c39a44c3ac
commit e9d72df890
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -54,6 +54,10 @@ public class BukkitAsyncCommandExecutor extends BukkitCommandExecutor implements
}
String buffer = e.getBuffer();
if (buffer.isEmpty()) {
return;
}
if (buffer.charAt(0) == '/') {
buffer = buffer.substring(1);
}