Skip to content

Commit

Permalink
Fixed ArrayIndexOutOfBoundsException when tab completing " ", bump ve…
Browse files Browse the repository at this point in the history
…rsion to 2.1.4
  • Loading branch information
vaperion committed Mar 6, 2022
1 parent 29e8857 commit d7d8baa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Maven
<dependency>
<groupId>com.github.vaperion</groupId>
<artifactId>blade</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand All @@ -40,7 +40,7 @@ allprojects {
}
dependencies {
implementation 'com.github.vaperion:blade:2.1.3'
implementation 'com.github.vaperion:blade:2.1.4'
}
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.vaperion</groupId>
<artifactId>blade</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void suggest(@NotNull List<String> suggestions, @NotNull BladeContext con
public void suggestSubCommand(@NotNull List<String> suggestions, @NotNull String commandLine,
@NotNull Function<BladeCommand, Boolean> permissionFunction) throws BladeExitMessage {
String[] commandLineParts = commandLine.split(" ");
if (commandLineParts.length == 0) return;
String baseCommand = commandLineParts[0];

List<BladeCommand> commandsWithBase = commandService.aliasCommands.get(baseCommand);
Expand Down

0 comments on commit d7d8baa

Please sign in to comment.