aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/service')
-rw-r--r--juick-server/src/main/java/com/juick/service/UserServiceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/service/UserServiceImpl.java b/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
index 81a1fea7..1b33a6d3 100644
--- a/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
@@ -4,6 +4,7 @@ import com.juick.User;
import com.juick.server.helpers.Auth;
import com.juick.server.helpers.EmailOpts;
import com.juick.server.helpers.UserInfo;
+import com.juick.server.security.entities.AnonymousUser;
import com.juick.util.UserUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
@@ -126,7 +127,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
return list.get(0);
}
// TODO: @NonNullable ?
- return new User();
+ return AnonymousUser.INSTANCE;
}
@Override
@@ -284,7 +285,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
return user;
}
}
- return new User();
+ return AnonymousUser.INSTANCE;
}
@Transactional