Fixed NPE on Analysis #448

This commit is contained in:
Rsl1122 2017-12-03 09:34:04 +02:00
parent 7c31cb3c34
commit 7f580bffe9

View File

@ -398,7 +398,10 @@ public class ServerProfile {
Session session = entry.getValue();
session.setSessionID((int) session.getSessionStart());
getPlayer(uuid).addActiveSession(session);
PlayerProfile player = getPlayer(uuid);
if (player != null) {
player.addActiveSession(session);
}
}
}
}