Fix NPE on zombie infection

This commit is contained in:
Thanos Paravantis 2016-06-28 21:57:32 +03:00
parent 973666a42f
commit 42ebb95db1

View File

@ -253,9 +253,12 @@ public class ChallengeZombieInfection extends Challenge
private void removeZombie()
{
if (_zombie.getEntity() != null)
if (_zombie != null)
{
_zombie.remove();
if (_zombie.getEntity() != null)
{
_zombie.remove();
}
}
_zombie = null;