From 09292fce58aa3efcf4921fb99fd80890e6849625 Mon Sep 17 00:00:00 2001 From: TheMolkaPL Date: Tue, 12 Nov 2019 00:35:52 +0100 Subject: [PATCH] Fix IndexOutOfBoundsException in argument parser --- .../main/java/app/ashcon/intake/parametric/ArgumentParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/app/ashcon/intake/parametric/ArgumentParser.java b/core/src/main/java/app/ashcon/intake/parametric/ArgumentParser.java index 3247505..b8cbd54 100644 --- a/core/src/main/java/app/ashcon/intake/parametric/ArgumentParser.java +++ b/core/src/main/java/app/ashcon/intake/parametric/ArgumentParser.java @@ -159,7 +159,7 @@ public List 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);