Forgiving Void

Forgiving Void

34M Downloads

NullPointerException in ForgivingVoid Config

Decryptu opened this issue ยท 1 comments

commented

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:

  1. Play normally with the mod installed
  2. After a few days, the mod will crash on startup
  3. Delete config file and restart to temporarily fix
  4. 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)

crash-2025-02-19_18.08.35-fml.txt

commented

This should be fixed in Balm 21.0.31+. It now logs an error when this would happen instead of crashing, to help locate the underlying issue.