Added NPE check at duel destroy instance.
This commit is contained in:
parent
3485ab91be
commit
98165f1983
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user