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

View File

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