mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +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) {
|
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