Skip to content

Commit

Permalink
[Feat] #269 - TaskValidator 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
0lynny committed May 19, 2024
1 parent 1509283 commit 630c34b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void validateActiveTaskSizeExceeded(final int taskListSize) {
}

public static void validateIndexUnderMaximum(final int requestIndex, final int totalTaskListSize) {
if (requestIndex > totalTaskListSize) {
if (requestIndex > totalTaskListSize || requestIndex < 0) {
throw new BadRequestException(INVALID_TASK_INDEX);
}
}
Expand Down

0 comments on commit 630c34b

Please sign in to comment.