Integrated Dynamics

Integrated Dynamics

63M Downloads

Crash when trying to use an error value

josephcsible opened this issue ยท 0 comments

commented

Reproduction steps:

  1. Place an inventory reader, but don't attach it to an inventory.
  2. Place a redstone writer.
  3. Place cables to connect the reader and writer.
  4. In the inventory reader, find Slots (it shows "ERROR"), and save it to a variable card.
  5. Place the variable card in the redstone writer.

Stack trace:

java.lang.NullPointerException: Ticking player
	at org.cyclops.integrateddynamics.part.aspect.Aspects$Read$Inventory$6.getOutput(Aspects.java:450)
	at org.cyclops.integrateddynamics.part.aspect.Aspects$Read$Inventory$6.getOutput(Aspects.java:447)
	at org.cyclops.integrateddynamics.core.part.aspect.build.AspectBuilder$BuiltReader.getValue(AspectBuilder.java:270)
	at org.cyclops.integrateddynamics.part.aspect.read.AspectReadBase$1.getValueLazy(AspectReadBase.java:75)
	at org.cyclops.integrateddynamics.core.part.aspect.LazyAspectVariable.getValue(LazyAspectVariable.java:49)
	at org.cyclops.integrateddynamics.inventory.container.ContainerPartWriter.func_75142_b(ContainerPartWriter.java:106)
	at net.minecraft.entity.player.EntityPlayerMP.func_70071_h_(EntityPlayerMP.java:324)
	at net.minecraft.world.World.func_72866_a(World.java:1986)
	at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:831)
	at net.minecraft.world.World.func_72870_g(World.java:1948)
	at net.minecraft.world.WorldServer.func_184147_l(WorldServer.java:641)
	at net.minecraft.world.World.func_72939_s(World.java:1731)
	at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:612)
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:765)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)
	at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)
	at java.lang.Thread.run(Thread.java:745)

Versions:
Minecraft 1.12.2
Forge 14.23.0.2529
CyclopsCore 0.10.22
CommonCapabilities 1.4.0
IntegratedDynamics 0.9.4