Make this possible NPE more clear.
This commit is contained in:
1 parent
a9a24e6b3a
commit
0dbe943cfe
1 file changed
+1
@@ -115,6 +115,7 @@ public class PlayerUtil implements Listener
|
|||||||
|
|
||||||
public static boolean isJoined(Player player)
|
public static boolean isJoined(Player player)
|
||||||
{
|
{
|
||||||
|
if (player == null) throw new NullPointerException("player was null");
|
||||||
return joinedPlayerNames.contains(player.getName());
|
return joinedPlayerNames.contains(player.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user