Project Zomboid

Project Zomboid

[B42/B41] Bandits NPC
B42.12 Bug report
ERROR: General f:414, t:1759942204718> ExceptionLogger.logException> Exception thrown
ja.va.lang.NullPointerException: Cannot read field "objects" because "this.def" is null at IsoRoom.hasLightSwitches(IsoRoom.ja.va:770).
Stack trace:
zombie.iso.areas.IsoRoom.hasLightSwitches(IsoRoom.ja.va:770)
zombie.iso.objects.IsoLightSwitch.chunkLoaded(IsoLightSwitch.ja.va:1077)
zombie.iso.IsoChunk.loadInMainThread(IsoChunk.ja.va:3627)
zombie.iso.IsoChunk.doLoadGridsquare(IsoChunk.ja.va:4842)
zombie.iso.IsoChunkMap.updateInternal(IsoChunkMap.ja.va:247)
zombie.iso.IsoChunkMap.update(IsoChunkMap.ja.va:206)
zombie.iso.IsoCell.updateInternal(IsoCell.ja.va:5940)
zombie.iso.IsoCell.update(IsoCell.ja.va:5897)
zombie.iso.IsoWorld.updateWorld(IsoWorld.ja.va:4203)
zombie.iso.IsoWorld.updateInternal(IsoWorld.ja.va:4323)
zombie.iso.IsoWorld.update(IsoWorld.ja.va:4237)
zombie.gameStates.IngameState.updateInternal(IngameState.ja.va:1700)
zombie.gameStates.IngameState.update(IngameState.ja.va:1465)
zombie.gameStates.GameStateMachine.update(GameStateMachine.ja.va:87)
zombie.GameWindow.logic(GameWindow.ja.va:386)
zombie.GameWindow.frameStep(GameWindow.ja.va:923)
zombie.GameWindow.mainThreadStep(GameWindow.ja.va:647)
zombie.MainThread.mainLoop(MainThread.ja.va:76)
ja.va.base/ja.va.lang.Thread.run(Unknown Source)

Whenever I move to my ingame house, game shuts down and I see those console txt.

I checked all the mods that I used and tested one by one.

Then when I excluded this mod, I could finally play the game.

I don't know the exact reason, but I guessed the reason why the game crashes.

This is my guess:

When the map chunk that I've already been turns into a place with no light at all (when it turns into a dark room without a flashlight or anything)

the game automatically shuts down.

I don't know the whole code of the mod so I can't check what's making the problem. I hope that my console.txt can help to fix the problem. Thank you for your mod though!
Last edited by 정현; 23 hours ago