Skip to content

Unhandled exception executing tab-completer #7

@dwesolowski

Description

@dwesolowski

When using tab-completer if I space after the last <arg> when entering a command I get the error below.

Unhandled exception executing tab-completer

public List<String> getSubcommandArguments(Player player, String[] args) {
        if (args.length == 2) {
            return Arrays.asList("<player>")
        }
        return null;
    }

The only way I could resolve this was to remove the @NotNull after public below in CoreCommand.java

public List<String> tabComplete(@NotNull CommandSender sender

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions