Added NPE check at duel destroy instance.

This commit is contained in:
MobiusDev 2016-12-11 07:39:42 +00:00
parent 3485ab91be
commit 98165f1983

View File

@ -215,7 +215,10 @@ public class Duel
setFinished(true);
playKneelAnimation();
ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleEndDuelTask(_duel, _duel.checkEndDuelCondition()), 5000);
getDueldInstance().destroy();
if (getDueldInstance() != null)
{
getDueldInstance().destroy();
}
break;
}
}