diff --git a/app/controllers/UserApp.java b/app/controllers/UserApp.java index f0fd4d166..7a25ac010 100644 --- a/app/controllers/UserApp.java +++ b/app/controllers/UserApp.java @@ -431,7 +431,7 @@ public static Result userInfo(String loginId, String groups, int daysAgo, String if (daysAgo == UNDEFINED) { Cookie cookie = request().cookie(DAYS_AGO_COOKIE); - if (cookie != null) { + if (cookie != null && StringUtils.isNotEmpty(cookie.value())) { daysAgo = Integer.parseInt(cookie.value()); } else { daysAgo = DAYS_AGO;