Bug Verified

GIVEMYTHICEXPERIENCE mechanic fails to load due to null ArchetypeManager during initialization

#6668 opened by Unknown 10 months ago

Unknownreported this bug

https://mclo.gs/bNYz76i

When starting the server, MythicRPG throws a NullPointerException because MythicRPG.getArchetypeManager() returns null while the GiveExperienceMechanic is being constructed. This prevents the GIVEMYTHICEXPERIENCE mechanic from loading. Steps to Reproduce:

  • Install MythicMobs Premium 5.10.1-SNAPSHOT and MythicRPG 0.0.1-SNAPSHOT
  • Start the server
  • Observe the console during plugin enable Expected Behavior: The GIVEMYTHICEXPERIENCE mechanic should register successfully once the ArchetypeManager is initialized. Actual Behavior: The mechanic fails to load with a NullPointerException. Relevant Stacktrace (excerpt): Caused by: java.lang.NullPointerException: Cannot invoke "io.lumine.mythicrpg.archetypes.ArchetypeManager.getArchetype(String)" because the return value of "io.lumine.mythicrpg.MythicRPG.getArchetypeManager()" is null at io.lumine.mythicrpg.skills.mechanics.GiveExperienceMechanic.(GiveExperienceMechanic.java:35)
Unknowncommented

this is a misshap between MM and MRPG Since MM build 5537. (and the partial fix of 5538)

Sign in to join the discussion.