mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] SessionManager NPE
This commit is contained in:
parent
c596c30ff6
commit
aced575921
1 changed files with 4 additions and 1 deletions
|
@ -73,7 +73,10 @@ public void garbageCollection() {
|
|||
|
||||
|
||||
public Client getClient(UUID session) {
|
||||
return restoreFromString(server.config.sessions.getSessionData(session));
|
||||
if(session == null) return null;
|
||||
byte[] data = server.config.sessions.getSessionData(session);
|
||||
if(data == null) return null;
|
||||
return restoreFromString(data);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue