This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ee_man's profile picture

[1.52][SMP/SSP]This happens when Turtle try to suck from IInventory that returns 0 from method getSizeInventory()

Started by ee_man, 06 May 2013 - 07:09 AM
ee_man #1
Posted 06 May 2013 - 09:09 AM
java.lang.NullPointerException
at dan200.computer.shared.InventoryUtils.takePartialItemStack(InventoryUtils.java:219)
at dan200.computer.shared.InventoryUtils.takePartialItemStack(InventoryUtils.java:109)
at dan200.turtle.shared.TileEntityTurtle.suck(TileEntityTurtle.java:2060)
at dan200.turtle.shared.TileEntityTurtle.updateCommands(TileEntityTurtle.java:2657)
at dan200.turtle.shared.TileEntityTurtle.func_70316_g(TileEntityTurtle.java:2331)
at net.minecraft.world.World.func_72939_s(World.java:2196)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:546)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:651)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:570)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:468)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)

I think you should put check "slots" for null on the line 218 ("if(slots != null)")
because method makeSlotList can return null (if range == 0)
Cloudy #2
Posted 06 May 2013 - 02:26 PM
Fixed in next version. Thanks!