mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
also check for null
This commit is contained in:
@@ -263,7 +263,7 @@ public class CommandCompletions<C extends CommandCompletionContext> {
|
||||
&& args.length > ACFPatterns.SPACE.split(command.complete).length) {
|
||||
String start = String.join(" ", args);
|
||||
completions = completions.stream()
|
||||
.filter(s -> s.split(" ").length >= args.length)
|
||||
.filter(s -> s != null && s.split(" ").length >= args.length)
|
||||
.filter(s -> ApacheCommonsLangUtil.startsWithIgnoreCase(s, start))
|
||||
.map(s -> {
|
||||
String[] completionArgs = s.split(" ");
|
||||
|
||||
Reference in New Issue
Block a user