Skip to content

Commit

Permalink
fix(web): Fix logout message (#1062)
Browse files Browse the repository at this point in the history
Currently, the implemented code returns null sometimes randomly.
This commit fixes by avoiding out of bound element.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
kowshikRoy and mergify[bot] authored Feb 24, 2020
1 parent cddc1a1 commit a543864
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AuthController {
@ApiOperation(value = "Get logged out message", response = String.class)
@RequestMapping(value = "/loggedOut", method = RequestMethod.GET)
String loggedOut() {
return LOGOUT_MESSAGES[r.nextInt(LOGOUT_MESSAGES.size()+1)]
return LOGOUT_MESSAGES[r.nextInt(LOGOUT_MESSAGES.size())]
}

/**
Expand Down

0 comments on commit a543864

Please sign in to comment.