1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-02-27 14:49:44 +01:00

Fixing an NPE involving invalid players chatting.

This commit is contained in:
Glitchfinder 2013-05-13 18:14:13 -07:00
parent 55f9092aa6
commit 95ea6703f1

@ -519,7 +519,10 @@ public class PlayerListener implements Listener {
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player); McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
if (mcMMOPlayer.getPartyChatMode()) { if (mcMMOPlayer == null) {
return;
}
else if (mcMMOPlayer.getPartyChatMode()) {
Party party = mcMMOPlayer.getParty(); Party party = mcMMOPlayer.getParty();
if (party == null) { if (party == null) {