Air Pump Null Pointer Exception
lumine opened this issue ยท 8 comments
I am playing the current version of the Regrowth mod pack from the Feed the Beast launcher. Placing the air pump in single player and manually pumping it and swimming around causes the game to crash. It has crashed about seven times and my world was corrupted and restored from backup twice. The message is "A fatal error has occurred, this connection is terminated." It kicks you out of single player and you end up at the multiplayer server screen instead of the single player saved games.
I found some people with the same issue within range of the Mariculture Air Pump:
http://forum.feed-the-beast.com/threads/1-7-10-regrowth-a-wip-hqm-pack-now-listed.57184/page-483
http://forum.feed-the-beast.com/threads/1-7-10-regrowth-a-wip-hqm-pack-now-listed.57184/page-370
https://mineyourmind.net/forum/threads/constant-fatal-error.7982/
java.lang.NullPointerException
at mariculture.core.network.PacketAirPump.onMessage(PacketAirPump.java:18) ~[PacketAirPump.class:?]
at mariculture.core.network.PacketAirPump.onMessage(PacketAirPump.java:9) ~[PacketAirPump.class:?]
I have been getting this quite commonly. It seemed to become significantly worse with the erebus installed
it was happening to me, and I wasn't wearing diving gear
might this be a duplicate: #314
it always happens when i leave the area around the pump, this makes our world (MP server) unplayable
to be more specific, when the chunk with the pump unloads (client side) the player loses connection after an networck packet error
i'd say it tries to update the pump meta while it has suddenly becom unloaded on the client
Version -1.2.4.2a
yeah well, nevermind :P it is like i said, nevermind, hope 1.3.0 will bereleased soon :P
My guess is that in PacketAirPump.java: tile is null sometimes.
if (tile instanceof TileAirPump) {
if (null != tile && tile instanceof TileAirPump) {
Edit: I am wrong instaceof should be enough to catch null
I can also confirm that this issue is happening. One of the players on my SMP server kept getting disconnected from the game with the same error.
It occured while the pump was active and while they were underwater without diving gear. Their fml-client-lastest output is as follows upon disconnect:
java.lang.NullPointerException
at mariculture.core.network.PacketAirPump.onMessage(PacketAirPump.java:18) ~[PacketAirPump.class:?]
at mariculture.core.network.PacketAirPump.onMessage(PacketAirPump.java:9) ~[PacketAirPump.class:?]
I'm done with 1.7.10 which is why I closed this, but this particular issue was resolved in the 1.3.0 builds of Mariculture, which other than missing some docs and a couple textures (for new things) was mostly complete http://joshiejack.uk:8080/view/1.7.10%20-%20Experimental/job/Mariculture%20-%20Experimental/