java.lang.NullPointerException: Exception while updating neighbours

GitHub | SquidDev | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NPE on neighbour change

    GitHub | 6 months ago | SquidDev
    java.lang.NullPointerException: Exception while updating neighbours

    Root Cause Analysis

    1. java.lang.NullPointerException

      Exception while updating neighbours

      at dan200.computercraft.shared.common.TileGeneric.getBlock()
    2. dan200.computercraft.shared
      BlockGeneric.func_176204_a
      1. dan200.computercraft.shared.common.TileGeneric.getBlock(TileGeneric.java:53)
      2. dan200.computercraft.shared.peripheral.common.TilePeripheralBase.getBlock(TilePeripheralBase.java:44)
      3. dan200.computercraft.shared.peripheral.common.TilePeripheralBase.getPeripheralType(TilePeripheralBase.java:67)
      4. dan200.computercraft.shared.peripheral.modem.TileCable.onNeighbourChange(TileCable.java:160)
      5. dan200.computercraft.shared.common.BlockGeneric.func_176204_a(BlockGeneric.java:162)
      5 frames
    3. org.spongepowered.common
      CauseTracker.notifyBlockOfStateChange
      1. org.spongepowered.common.event.CauseTracker.notifyBlockOfStateChange(CauseTracker.java:1157)
      1 frame
    4. Minecraft
      World.func_180496_d
      1. net.minecraft.world.World.func_180496_d(World.java:1393)
      1 frame
    5. dan200.computercraft.shared
      BlockGeneric.func_180663_b
      1. dan200.computercraft.shared.util.RedstoneUtil.propogateRedstoneOutput(RedstoneUtil.java:87)
      2. dan200.computercraft.shared.turtle.blocks.TileTurtle.destroy(TileTurtle.java:123)
      3. dan200.computercraft.shared.common.BlockGeneric.func_180663_b(BlockGeneric.java:119)
      3 frames
    6. Minecraft
      World.func_175698_g
      1. net.minecraft.world.chunk.Chunk.setBlockState(Chunk.java:535)
      2. net.minecraft.world.World.func_180501_a(World.java:1168)
      3. net.minecraft.world.World.func_175698_g(World.java:367)
      3 frames
    7. dan200.computercraft.shared
      TileTurtle.func_73660_a
      1. dan200.computercraft.shared.turtle.core.TurtleBrain.teleportTo(TurtleBrain.java:521)
      2. dan200.computercraft.shared.turtle.core.TurtleMoveCommand.execute(TurtleMoveCommand.java:112)
      3. dan200.computercraft.shared.turtle.core.TurtleBrain.updateCommands(TurtleBrain.java:994)
      4. dan200.computercraft.shared.turtle.core.TurtleBrain.update(TurtleBrain.java:183)
      5. dan200.computercraft.shared.turtle.blocks.TileTurtle.func_73660_a(TileTurtle.java:257)
      5 frames
    8. Minecraft
      WorldServer.func_72939_s
      1. net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:730)
      1 frame
    9. MC Server
      MinecraftServer.run
      1. net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:701)
      2. net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344)
      3. net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605)
      4. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)
      4 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame