aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-10 23:04:57 +0300
committerGravatar Vitaly Takmazov2016-07-10 23:04:57 +0300
commitf0a60dd95eff153c022bca0c71fed39b901dd547 (patch)
tree74acd455e4ef6412322f9671151b6a98098a7b6d /juick-www/src/main/java/com
parent156ab97673d7552c11784d0cdd53f8f37923a294 (diff)
fix getVisitorUser
Diffstat (limited to 'juick-www/src/main/java/com')
-rw-r--r--juick-www/src/main/java/com/juick/www/Utils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Utils.java b/juick-www/src/main/java/com/juick/www/Utils.java
index e88e5b1b..8189bd82 100644
--- a/juick-www/src/main/java/com/juick/www/Utils.java
+++ b/juick-www/src/main/java/com/juick/www/Utils.java
@@ -17,6 +17,8 @@
*/
package com.juick.www;
+import com.juick.*;
+import com.juick.User;
import org.springframework.jdbc.core.JdbcTemplate;
import javax.servlet.http.Cookie;
@@ -82,7 +84,7 @@ public class Utils {
}
return visitor;
} else {
- return null;
+ return new User();
}
}