SPIGOT-4498: Crash on startup

This commit is contained in:
md_5 2018-11-23 14:20:59 +11:00
parent b4ee04baae
commit 8cd538e661

View file

@ -105,7 +105,7 @@ class CraftTask implements BukkitTask, Runnable {
}
Class<?> getTaskClass() {
return (rTask != null) ? rTask.getClass() : cTask.getClass();
return (rTask != null) ? rTask.getClass() : ((cTask != null) ? cTask.getClass() : null);
}
@Override