aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/UsersManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/database/UsersManager.java')
-rw-r--r--src/org/traccar/database/UsersManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/database/UsersManager.java b/src/org/traccar/database/UsersManager.java
index 28e6a31b2..ed39f6cfa 100644
--- a/src/org/traccar/database/UsersManager.java
+++ b/src/org/traccar/database/UsersManager.java
@@ -29,6 +29,9 @@ public class UsersManager extends SimpleObjectManager<User> {
public UsersManager(DataManager dataManager) {
super(dataManager, User.class);
+ if (usersTokens == null) {
+ usersTokens = new ConcurrentHashMap<>();
+ }
}
private void putToken(User user) {