If a variable can be null, check it before using it.

This commit is contained in:
Glitchfinder 2013-08-04 11:48:44 -07:00
parent c85bd8ab70
commit a2450d2d07

View File

@ -167,6 +167,10 @@ public class PlayerListener implements Listener {
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
if (mcMMOPlayer == null) {
return;
}
mcMMOPlayer.checkGodMode();
mcMMOPlayer.checkParty();
}