Skip to content

Commit

Permalink
Fix IndexOutOfBoundsException in argument parser
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMolkaPL authored and Electroid committed Nov 12, 2019
1 parent ed2fa81 commit 09292fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public List<String> parseSuggestions(String arguments, Namespace namespace) {
int argId = split.length - 1;
String arg = split[argId];

if (argId > userParams.size()) {
if (argId >= userParams.size()) {
return ImmutableList.of();
}
Parameter parameter = userParams.get(argId);
Expand Down

0 comments on commit 09292fc

Please sign in to comment.