Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Merge branch 'fix/profile-days-ago-cookie' of dlab/hive
Browse files Browse the repository at this point in the history
from pull-request 1463

* refs/heads/fix/profile-days-ago-cookie:
  user/profile: Fix a server error by an empty daysAgo cookie

Reviewed-by: 백기선 <keesun.baik@navercorp.com>
  • Loading branch information
이응준 committed Feb 5, 2015
2 parents 0b615e7 + ad3a136 commit f6c0ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/UserApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6c0ae2

Please sign in to comment.