Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: IOOB exception when arg count is invalid in SetDirectiveHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaky committed Mar 17, 2024
1 parent 92c1b11 commit fb827ce
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public String[] getSupportedPredicates() {
@Override
public Result handle(TSQuery query, TSQueryMatch match, List<PredicateStep> args
) {
if (args.size() < PARAMETERS_1.length || args.size() > PARAMETERS_2.length) {
return Result.UNHANDLED;
}

if (!DIRECTIVE.equals(args.get(0).value)) {
return Result.UNHANDLED;
}
Expand Down

0 comments on commit fb827ce

Please sign in to comment.