NPE thrown when fireball skill used
Summary
Describe the bug encountered in detail. When our FireballMob uses its fireball throwing skill, an NPE occurs. This did not happen in build 5.6.2, build 5019 and is occurring after updating to build 5036. Here is the error that occurs: https://paste.gg/p/Momshroom/8bd6c5a18f454618b059cad9b5d74d19
Steps to reproduce
Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.
summon the FireballMob and let it use its fireball throwing skill to attack you. (just attempt to fight it or otherwise be in attack range)
NOTE: The error occurs if and only if the @PlayersInRadius is used. If that is commented out, it doesn't. Changing one of the skills using OnPlayersInRadius to the skill that doesn't in @trigger and it still does..
It's the OnPlayersInRadius causing the error.
Here is the mob: https://paste.gg/p/Momshroom/36e1c2a56a5a4ad986e06c85291b60e9 Current behavior
Here are the skills it uses: https://paste.gg/p/Momshroom/d8e5b3d5d9b94a118275057d4cdefb2b
Describe what happens currently, while the bug is affecting your server.
When the FireballMob throws fireballs at you using @PlayersInRadius an NPE occurs. (Noting here b/c it might be related: we also have a mob that disguises as a player with @NearestPlayer and that is malfunctioning and disguising as a farther away player)
Intended correct behavior
Describe what you think should happen instead of the bug.
The FireballMob should be able to throw fireballs at players in the radius without NPEs occurring.
Server log file
Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting. https://paste.gg/p/Momshroom/15453a4fb0ce4436b314f80c64aa4265
Debug log snippet
Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.
https://paste.gg/p/Momshroom/4889919feddb485a9134845ccfabedb5 Proposed fixes
Describe what you think the issue or any potential fixes may be. The issue seems to be with the fireball throwing mechanic attempting to throw @PlayersInRadius.