[FIX] SessionManager NPE

This commit is contained in:
Gravita 2020-12-16 14:07:46 +07:00
parent c596c30ff6
commit aced575921

View file

@ -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);
}