Hi, I’m trying to figure out the cause of a multiplayer crash and wanted to check if anyone has run into this before.
I’m getting this error when connecting to a dedicated server:
java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because the return value of "zombie.characters.IsoGameCharacter.getCurrentState()" is null at StatePacket.apply(StatePacket.java:256). Message: Error with packet of type: State
Stack trace:
zombie.network.packets.actions.StatePacket.apply(StatePacket.java:256)
zombie.network.packets.actions.StatePacket.processClient(StatePacket.java:132)
zombie.network.PacketTypes$PacketType.onClientPacket(PacketTypes.java:999)
zombie.network.GameClient.mainLoopHandlePacketInternal(GameClient.java:557)
zombie.network.GameClient.mainLoopDealWithNetData(GameClient.java:540)
zombie.network.GameClient.update(GameClient.java:387)
zombie.GameWindow.logic(GameWindow.java:308)
zombie.GameWindow.frameStep(GameWindow.java:801)
zombie.GameWindow.mainThreadStep(GameWindow.java:579)
zombie.MainThread.mainLoop(MainThread.java:69)
java.base/java.lang.Thread.run(Unknown Source)```
What’s strange is:
- If I host a dedicated server on my **Windows PC** → everything works fine
- If I host the same setup on a **Linux VPS** → I get this error
So it only seems to happen on Linux.
I am using mods, but the exact same mod setup works perfectly on Windows, so I’m not sure if this is a Linux-related issue or something about how states are initialized/synced there.
Also, when connecting to the VPS server, this error keeps spamming in Zomboid/console.txt, and it seems to cause noticeable server lag.
This does NOT happen when hosting locally on Windows.
Has anyone seen this before, or know if this is a known issue with Build 42 on Linux servers?
Any ideas would really help 
