NullPointerException: null - getEffectColor
mibby opened this issue ยท 2 comments
Magic dev 3725
[16:24:27] [Craft Scheduler Thread - 338 - Magic/ERROR]: [Magic] There was an error checking spell fire for issues
java.lang.NullPointerException: null
at com.elmakers.mine.bukkit.magic.Mage.getEffectColor(Mage.java:2478) ~[?:?]
at com.elmakers.mine.bukkit.action.CastContext.getEffectColor(CastContext.java:632) ~[?:?]
at com.elmakers.mine.bukkit.action.CastContext.getEffects(CastContext.java:619) ~[?:?]
at com.elmakers.mine.bukkit.action.builtin.CustomProjectileAction.prepare(CustomProjectileAction.java:280) ~[?:?]
at com.elmakers.mine.bukkit.action.ActionContext.prepare(ActionContext.java:28) ~[?:?]
at com.elmakers.mine.bukkit.action.ActionHandler.prepare(ActionHandler.java:132) ~[?:?]
at com.elmakers.mine.bukkit.spell.ActionSpell.reloadParameters(ActionSpell.java:175) ~[?:?]
at com.elmakers.mine.bukkit.tasks.ValidateSpellsTask.run(ValidateSpellsTask.java:47) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Airplane-"1cf4e79"]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:58) ~[patched_1.16.5.jar:git-Airplane-"1cf4e79"]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Airplane-"1cf4e79"]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Thank you- looks like this is an issue if you're not using classes. I have a fix in the latest dev and stable builds: