IC2 1.95 - NPE within changeFoam method

  • Hi,

    I get the following server side exception when entering a chunk that contains cables that are embedded within foam.

    Minecraft Server:1.2.5
    IC2: 1.95
    MCForge_3.1.2.94

  • It's not server-side only, it crashes on SP too (I wasn't able to get the log, but it started crashing right after I foamed a cable) - however it crashes on load, not when an existing cable is foamed.

  • I had RP, NEI and Railcraft, but the same bug persisted even after I removed all of them. Currently I have ModLoader 1.2.5, Forge 3.1.2.90 and IC1.95. It goes right to "Saving chunks" after the world is loaded, and it ends up corrupted.

  • I've got same bug, plus described there. Previously i had MC 1.2.3 with IC2 1.81, RP 2.0 PR4e, BC 2.2.13. After upgrade to newest version's i have same errors on my server, and after all i've got clear chunk where was my house stand. :|

  • Hi guys!


    This bug still partially exists (at least for me) in version 1.95b. When loading a world which has cables covered in solified CF works fine, but loading worlds which have cables embedded in liquified CF still causes the client to throw a NPE.

  • Same here (1.95b), foam covered cables just regenerated two of the chunks my nuclear facility was in :(


    Error Messages:

    Display Spoiler


    shortly before it crashed:

    java.lang.NullPointerException
    at ic2.common.TileEntityCable.onNetworkUpdate(TileEntityCable.java:490)
    at ic2.platform.NetworkManager.updateTileEntityField(NetworkManager.java:28)
    at ic2.common.TileEntityCable.changeFoam(TileEntityCable.java:168)
    at ic2.common.TileEntityCable.a(TileEntityCable.java:71)
    at kw.c(TileEntity.java:110)
    at aiv.a(AnvilChunkLoader.java:364)
    at aiv.a(AnvilChunkLoader.java:82)
    at aiv.a(AnvilChunkLoader.java:65)
    at ko.e(ChunkProvider.java:142)
    at ko.c(ChunkProvider.java:90)
    at ko.b(ChunkProvider.java:126)
    at xd.d(World.java:647)
    at xd.f(World.java:3060)
    at xd.c(World.java:2824)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1867)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)


    The crash message itself:

    java.lang.NullPointerException
    at ic2.common.TileEntityCable$1.tickCallback(TileEntityCable.java:153)
    at mod_IC2.OnTickInGame(mod_IC2.java:1388)
    at ic2.platform.Ic2.onTickInGame(Ic2.java:347)
    at ModLoader.onTick(ModLoader.java:1102)
    at EntityRendererProxy.b(EntityRendererProxy.java:22)
    at net.minecraft.client.Minecraft.x(Minecraft.java:869)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)


    Only happens with 'non solified' foam covered cables.