Fix NPE in IceBlast

This commit is contained in:
Jack Lin 2015-06-30 01:15:07 +12:00
parent 70fbdb2179
commit fc1f14a03f

View file

@ -159,7 +159,9 @@ public class IceBlast {
progressing = false;
}
BendingPlayer bPlayer = GeneralMethods.getBendingPlayer(player.getName());
bPlayer.addCooldown("IceBlast", cooldown);
if (bPlayer != null) {
bPlayer.addCooldown("IceBlast", cooldown);
}
instances.remove(id);
}