Skip to content

Commit

Permalink
NFE
Browse files Browse the repository at this point in the history
  • Loading branch information
s39f4lt committed Jan 6, 2021
1 parent ab33b20 commit aba61cb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public class UserController {
Integer ageTo = nonNull(request.queryParams("ageto")) ? parseInt(request.queryParams("ageto")) : null;
Integer rateTo = nonNull(request.queryParams("rateto")) ? parseInt(request.queryParams("rateto")) : null;
Integer rateFrom = nonNull(request.queryParams("ratefrom")) ? parseInt(request.queryParams("ratefrom")) : null;
if (ageFrom < 0 || ageTo < 0) {
throw new NumberFormatException();
}
FormDto formDto = new FormDto(
null,
Boolean.parseBoolean(request.queryParams("man")),
Expand Down

0 comments on commit aba61cb

Please sign in to comment.