Console error - io.lumine.xikage.mythicmobs.adapters.AbstractEntity.getLocation()
Summary
An error is being sent to the console, sometimes spammed.
[10:01:36 ERROR]: [MythicMobs] [SCHEDULER] Exception thrown whilst executing task [10:01:36 WARN]: java.lang.NullPointerException: Cannot invoke "io.lumine.xikage.mythicmobs.adapters.AbstractEntity.getLocation()" because "this.target" is null
Paper git-paper-109 (1.17.1), MythicMobs 5.0.0-snapshot-a0e23ea4
Steps to reproduce
Unsure, since it could be linked to my mobs/skills etc., unable to debug the error myself. Perhaps issue with the ThreatTable module?
Server log file
Debug log snippet
[10:01:36 ERROR]: [MythicMobs] [SCHEDULER] Exception thrown whilst executing task
[10:01:36 WARN]: java.lang.NullPointerException: Cannot invoke "io.lumine.xikage.mythicmobs.adapters.AbstractEntity.getLocation()" because "this.target" is null
[10:01:36 WARN]: at io.lumine.xikage.mythicmobs.mobs.ActiveMob$ThreatTable.tickThreat(ActiveMob.java:768)
[10:01:36 WARN]: at io.lumine.xikage.mythicmobs.clock.MythicMobsClock.lambda$run$0(MythicMobsClock.java:57)
[10:01:36 WARN]: at java.base/java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4780)
[10:01:36 WARN]: at io.lumine.xikage.mythicmobs.clock.MythicMobsClock.run(MythicMobsClock.java:57)
[10:01:36 WARN]: at io.lumine.xikage.mythicmobs.utils.Delegates$RunnableToConsumer.accept(Delegates.java:93)
[10:01:36 WARN]: at io.lumine.xikage.mythicmobs.utils.Schedulers$LumineTask.run(Schedulers.java:162)
[10:01:36 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100)
[10:01:36 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
[10:01:36 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1490)
[10:01:36 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:479)
[10:01:36 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1406)
[10:01:36 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1188)
[10:01:36 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[10:01:36 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)