diff --git a/src/main/java/com/gmail/nossr50/util/Users.java b/src/main/java/com/gmail/nossr50/util/Users.java index ec6b7d0ff..dbda26f14 100644 --- a/src/main/java/com/gmail/nossr50/util/Users.java +++ b/src/main/java/com/gmail/nossr50/util/Users.java @@ -97,7 +97,9 @@ public class Users { * @return the player's profile */ public static PlayerProfile getProfile(String playerName) { - return players.get(playerName).getProfile(); + McMMOPlayer mcmmoPlayer = players.get(playerName); + + return (mcmmoPlayer != null) ? mcmmoPlayer.getProfile() : null; } /**