diff --git a/src/main/java/com/sk89q/worldguard/bukkit/util/report/SchedulerReport.java b/src/main/java/com/sk89q/worldguard/bukkit/util/report/SchedulerReport.java index 9e866f15..21d76ee1 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/util/report/SchedulerReport.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/util/report/SchedulerReport.java @@ -77,7 +77,8 @@ private Class getTaskClass(BukkitTask task) { for (Class type : classes) { Optional field = taskFieldCache.getUnchecked(type); if (field.isPresent()) { - return field.get().get(task).getClass(); + Object res = field.get().get(task); + return res == null ? null : res.getClass(); } } } catch (IllegalAccessException ignored) {