mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-17 05:31:38 +01:00
Prevented null playerUUID from executing code
Affects issues: - Fixed #1307
This commit is contained in:
parent
380c98e8e6
commit
5d457223f8
@ -211,6 +211,8 @@ public class PlayerOnlineListener implements Listener {
|
|||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
String playerName = player.getName();
|
String playerName = player.getName();
|
||||||
UUID playerUUID = player.getUniqueId();
|
UUID playerUUID = player.getUniqueId();
|
||||||
|
if (playerUUID == null) return; // Can be null when player is not signed in to xbox live
|
||||||
|
|
||||||
UUID serverUUID = serverInfo.getServerUUID();
|
UUID serverUUID = serverInfo.getServerUUID();
|
||||||
JSONCache.invalidate(DataID.SERVER_OVERVIEW, serverUUID);
|
JSONCache.invalidate(DataID.SERVER_OVERVIEW, serverUUID);
|
||||||
JSONCache.invalidate(DataID.GRAPH_PERFORMANCE, serverUUID);
|
JSONCache.invalidate(DataID.GRAPH_PERFORMANCE, serverUUID);
|
||||||
|
Loading…
Reference in New Issue
Block a user