AlternativeMods / AlternativeEnergy

Universal Power Storage for Minecraft
7 stars 3 forks source link

SMP CrasH: NPE java.lang.NullPointerException #4

Closed jalapeno777 closed 10 years ago

jalapeno777 commented 11 years ago

This only happened once and hasn't happened again so I'm not sure what the source of the issue is. Being an NPE I'm hoping you can just throw in a null check to prevent the crash from occurring in the future

// Shall we play a game?

Time: 11/20/13 3:03 AM Description: Ticking tile entity

java.lang.NullPointerException at net.minecraft.world.World.func_72796_p(World.java:3429) at net.minecraft.world.WorldServer.func_72796_p(WorldServer.java:256) at Lordmau5.PowerBoxes.tile.TileEntityPowerCable.tryOutputtingPBu(TileEntityPowerCable.java:193) at Lordmau5.PowerBoxes.tile.TileEntityPowerCable.func_70316_g(TileEntityPowerCable.java:91) at net.minecraft.world.World.func_72939_s(World.java:2761) at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:870) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:886) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:327) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:780) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

jeffreykog commented 11 years ago

Thanks for your report

The powerboxes and cables are undergoing a big rewrite. A release will be out somewhere next week. I'll leave this open until then, to see if it remains a problem

Lordmau5 commented 10 years ago

I can't really find the error in there, but I tweaked the function a bit. However, I couldn't reproduce it so ye... The only thing we can do now is hoping that it doesn't appear again :/ If it does however, please create another issue.

~ Greetings.