diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java b/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java index d6066868..92c2a7d2 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java @@ -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); }