Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException on FluidNetwork.onUpdate #1363

Closed
joserobjr opened this issue May 31, 2014 · 7 comments
Closed

NullPointerException on FluidNetwork.onUpdate #1363

joserobjr opened this issue May 31, 2014 · 7 comments

Comments

@joserobjr
Copy link

This NPE is happening constantly in my server, please, do a null check there.

java.lang.NullPointerException
        at mekanism.common.FluidNetwork.onUpdate(FluidNetwork.java:260)
        at mekanism.api.transmitters.DynamicNetwork.tick(DynamicNetwork.java:167)
        at mekanism.api.transmitters.TransmitterNetworkRegistry.tickEnd(TransmitterNetworkRegistry.java:87)
        at cpw.mods.fml.common.SingleIntervalHandler.tickEnd(SingleIntervalHandler.java:34)
        at cpw.mods.fml.common.FMLCommonHandler.tickEnd(FMLCommonHandler.java:141)
        at cpw.mods.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:274)
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:813)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:659)
        at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

http://pastebin.com/SSrnjXRK

@joserobjr
Copy link
Author

Looks like I was using a outdated development version, I just updated the server, I'll wait few hours so players can join and load the broken tile entity, I'll inform if the crash happened again.

The line that crashed on my server: (development branch)
https://github.com/aidancbrady/Mekanism/blob/development/src/main/java/mekanism/common/FluidNetwork.java#L260

The line in the latest version: (master branch)
https://github.com/aidancbrady/Mekanism/blob/master/common/mekanism/common/FluidNetwork.java#L239

@joserobjr
Copy link
Author

It happened again, the latest version doesn't fix the issue.

Please, add a null check there:
https://github.com/aidancbrady/Mekanism/blob/master/common/mekanism/common/FluidNetwork.java#L241

java.lang.NullPointerException
        at mekanism.common.FluidNetwork.onUpdate(FluidNetwork.java:241)
        at mekanism.api.transmitters.DynamicNetwork.tick(DynamicNetwork.java:149)
        at mekanism.api.transmitters.TransmitterNetworkRegistry.tickEnd(TransmitterNetworkRegistry.java:87)
        at cpw.mods.fml.common.SingleIntervalHandler.tickEnd(SingleIntervalHandler.java:34)
        at cpw.mods.fml.common.FMLCommonHandler.tickEnd(FMLCommonHandler.java:141)
        at cpw.mods.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:274)
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:813)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:659)
        at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

http://pastebin.com/dftV0kNa

joserobjr added a commit to joserobjr/Mekanism that referenced this issue Jun 1, 2014
@M4vErw1kiXL
Copy link

qual o problema, exatamente, por que eu tenho os mods da sua modpack e mais e não acontece nenhum bug com o hidrogen generator ou o mekanism em sí, apenas um bug visual das armaduras deles, mas é culpa do render api. :)
sou fan do seu canal :D

@M4vErw1kiXL
Copy link

diga informações mais detalhadas como:
acontece apenas quando:
se eu tento fazer tal coisa acontece isso:
acontece isso depois de:

@aidancbrady
Copy link
Member

Should be fixed!

@skwerlman
Copy link

Our server is experiencing the same issue, but we're still on 1.6.4. Any plans for a hotfix?
If not, I'm not too worried; we're gonnna update to 1.7.10 in a few months.

@snowe2010
Copy link

I'm also seeing this in ATLauncher. Is there any fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants