From 95ea6703f19b65df9de645ffc217370129c683fb Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Mon, 13 May 2013 18:14:13 -0700 Subject: [PATCH] Fixing an NPE involving invalid players chatting. --- .../java/com/gmail/nossr50/listeners/PlayerListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 8f13b6b93..cd1d2d02b 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -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) {