From 8cd538e66144bd93f9139574b179b2413ee5dd62 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 23 Nov 2018 14:20:59 +1100 Subject: [PATCH] SPIGOT-4498: Crash on startup --- src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java index adacb60a4b..15c62552e7 100644 --- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java +++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java @@ -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