
NullPointerException in ForgivingVoid Config
Decryptu opened this issue ยท 1 comments
Minecraft Version
1.21.1 (LTS)
Mod Loader
NeoForge
Describe the Issue
Description:
The mod crashes on startup with a NullPointerException when trying to read the config file. The issue appears to be recurring - it can be temporarily fixed by deleting the config file and restarting, but the problem returns after a few days of gameplay.
Steps to Reproduce:
- Play normally with the mod installed
- After a few days, the mod will crash on startup
- Delete config file and restart to temporarily fix
- Issue recurs after several more days of gameplay
Environment:
- Minecraft Version: 1.21.1
- Mod Version: ForgivingVoid 21.1.2
- NeoForge Version: 21.1.119
- Java Version: 21.0.5
- Operating System: Windows 11
Additional Context:
- The error occurs during mod initialization
- The config appears to become corrupted or invalid over time
- Temporary fix is deleting the config file, but issue returns
- Related to the
entityAllowList
configuration not being properly loaded/maintained
Logs
Crash Log:
net.neoforged.neoforge.logging.CrashReportExtender$ModLoadingCrashException: Mod loading has failed
Caused by: java.lang.NullPointerException: Cannot read field "entityAllowList" because the return value of "net.blay09.mods.forgivingvoid.ForgivingVoidConfig.getActive()" is null
at net.blay09.mods.forgivingvoid.ForgivingVoid.initialize(ForgivingVoid.java:36)