From f0a60dd95eff153c022bca0c71fed39b901dd547 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 10 Jul 2016 23:04:57 +0300 Subject: fix getVisitorUser --- juick-www/src/main/java/com/juick/www/Utils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'juick-www') 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(); } } -- cgit v1.2.3