add null check to fix tab completion NPE

This commit is contained in:
Badbird-5907
2022-07-13 15:12:28 -04:00
parent efaa4ae32e
commit 650386b78c

View File

@@ -237,6 +237,7 @@ public abstract class CommandInstance extends BukkitCommand {
if (args.length > 1) {
CommandMethod commandMethod = methods.get(args[0]);
if (commandMethod == null) return new ArrayList<>();
Method autofiller = commandMethod.getAutofiller();
if (autofiller != null) {