diff options
author | Vitaly Takmazov | 2016-05-11 03:37:04 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-05-11 03:40:45 +0300 |
commit | 69a435dfef1bc656dc1d9d3da0f049f86d18fdaf (patch) | |
tree | 4af53829317e124094ad3122b06da3a85dcf0abc /src/main/java/com/juick/server/UserQueries.java | |
parent | e292163fd4c343764889f1d6161720a2d57dfc84 (diff) |
fix fill users
Diffstat (limited to 'src/main/java/com/juick/server/UserQueries.java')
-rw-r--r-- | src/main/java/com/juick/server/UserQueries.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/UserQueries.java b/src/main/java/com/juick/server/UserQueries.java index cfa52a16..184d26f5 100644 --- a/src/main/java/com/juick/server/UserQueries.java +++ b/src/main/java/com/juick/server/UserQueries.java @@ -127,7 +127,8 @@ public class UserQueries { sql.query("SELECT id,nick,banned FROM users WHERE id IN (" + uids + ")", (rs, num) -> { - User u = users.get(num); + User u = new User(); + u.setUID(rs.getInt(1)); u.setUName(rs.getString(2)); return u; }); |