fix npe in PlayerDataManager::storeIsland

This commit is contained in:
Aurora 2020-08-21 12:10:09 +02:00 committed by Brianna
parent 6b92224a5b
commit f8bd76fd15

View File

@ -192,6 +192,8 @@ public class PlayerDataManager {
for (Player loopPlayer : Bukkit.getOnlinePlayers()) {
PlayerData targetPlayerData = getPlayerData(loopPlayer);
if (targetPlayerData == null)
continue;
if (targetPlayerData.getOwner() != null &&
targetPlayerData.getOwner().equals(island.getOwnerUUID())) {