java.lang.NullPointerException: Cannot invoke "java.util.Collection.iterator()" because "c" is null

Summary

I am using MM with DungeonXL, which will create a temp world when players enters the dungeon (there are mm mobs in those dungeons). From the console logs we found out that sometimes mm will throw this error many many times (like an infinite loop) when the dxl temp world is created.

[00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/ERROR]: [MythicMobs] [31m[SCHEDULER] Exception thrown whilst executing task[37m [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: java.lang.NullPointerException: Cannot invoke "java.util.Collection.iterator()" because "c" is null [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at java.base/java.util.AbstractCollection.addAll(AbstractCollection.java:335) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at MythicMobs-5.0.4.jar//io.lumine.mythic.core.skills.audience.WorldAudience.get(WorldAudience.java:25) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at MythicMobs-5.0.4.jar//io.lumine.mythic.core.skills.mechanics.ParticleOrbitalEffect$Animator.run(ParticleOrbitalEffect.java:138) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at MythicMobs-5.0.4.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToConsumer.accept(Delegates.java:93) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at MythicMobs-5.0.4.jar//io.lumine.mythic.bukkit.utils.Schedulers$LumineTask.run(Schedulers.java:162) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [00:22:48] [Craft Scheduler Thread - 226 - MythicMobs/WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

Steps to reproduce

When players enters a dxl dungeon, there is a chance to trigger this infinite error loop.

Current behavior

There are a lot of errors in console, the log file grows to hundreds of MB after few hours.

Server log file

https://pastebin.com/Ws21nmVC

Debug log snippet

Still collecting the logs, I will upload it as soon as I capture it.