mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] NPE in SessionManager
This commit is contained in:
parent
94e60c3e51
commit
aee051627b
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
@ -44,7 +45,7 @@ private Client restoreFromString(String data) {
|
|||
result.daoObject = server.config.dao.userDAO.findByUsername(result.username);
|
||||
}
|
||||
}
|
||||
|
||||
if(result.refCount == null) result.refCount = new AtomicInteger(1);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue