{"action":"created","issue":{"url":"https://api.github.com/repos/MrTJP/ProjectRed/issues/916","labels_url":"https://api.github.com/repos/MrTJP/ProjectRed/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/MrTJP/ProjectRed/issues/916/comments","events_url":"https://api.github.com/repos/MrTJP/ProjectRed/issues/916/events","html_url":"https://github.com/MrTJP/ProjectRed/issues/916","id":100783163,"number":916,"title":"IC chip cheated from NEI has invalid NBT","user":{"login":"MarcuzD","id":7823099,"avatar_url":"https://avatars.githubusercontent.com/u/7823099?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcuzD","html_url":"https://github.com/MarcuzD","followers_url":"https://api.github.com/users/MarcuzD/followers","following_url":"https://api.github.com/users/MarcuzD/following{/other_user}","gists_url":"https://api.github.com/users/MarcuzD/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcuzD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcuzD/subscriptions","organizations_url":"https://api.github.com/users/MarcuzD/orgs","repos_url":"https://api.github.com/users/MarcuzD/repos","events_url":"https://api.github.com/users/MarcuzD/events{/privacy}","received_events_url":"https://api.github.com/users/MarcuzD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T14:31:10Z","updated_at":"2015-08-17T15:04:15Z","closed_at":null,"body":"I have Waila installed, and when I place down an IC chip cheated from NEI, it kicks me out with the following printed in the server console:\r\n\r\n```\r\n[14:25:06] [Server thread/ERROR] [FML/]: FMLIndexedMessageCodec exception caught\r\nio.netty.handler.codec.EncoderException: java.lang.NullPointerException\r\n\tat io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:717) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:893) ~[DefaultChannelPipeline.class:?]\r\n\tat io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:239) ~[AbstractChannel.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler.sendTo(WailaPacketHandler.java:82) [WailaPacketHandler.class:?]\r\n\tat mcp.mobius.waila.network.Message0x01TERequest.channelRead0(Message0x01TERequest.java:150) [Message0x01TERequest.class:?]\r\n\tat mcp.mobius.waila.network.Message0x01TERequest.channelRead0(Message0x01TERequest.java:27) [Message0x01TERequest.class:?]\r\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [SimpleChannelInboundHandler.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]\r\n\tat io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]\r\n\tat cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0]\r\n\tat net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:244) [ej.class:?]\r\n\tat net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173) [nc.class:?]\r\n\tat net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:980) [MinecraftServer.class:?]\r\n\tat net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:430) [lt.class:?]\r\n\tat net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798) [MinecraftServer.class:?]\r\n\tat net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658) [MinecraftServer.class:?]\r\n\tat java.lang.Thread.run(Unknown Source) [?:1.8.0-ea]\r\nCaused by: java.lang.NullPointerException\r\n\tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:371) ~[dh.class:?]\r\n\tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31) ~[dh.class:?]\r\n\tat net.minecraft.nbt.NBTTagList.func_74734_a(NBTTagList.java:32) ~[dq.class:?]\r\n\tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:376) ~[dh.class:?]\r\n\tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31) ~[dh.class:?]\r\n\tat net.minecraft.nbt.CompressedStreamTools.func_150663_a(CompressedStreamTools.java:149) ~[du.class:?]\r\n\tat net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:139) ~[du.class:?]\r\n\tat net.minecraft.nbt.CompressedStreamTools.func_74798_a(CompressedStreamTools.java:82) ~[du.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler.writeNBT(WailaPacketHandler.java:94) ~[WailaPacketHandler.class:?]\r\n\tat mcp.mobius.waila.network.Message0x02TENBTData.encodeInto(Message0x02TENBTData.java:23) ~[Message0x02TENBTData.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler$WailaCodec.encodeInto(WailaPacketHandler.java:69) ~[WailaPacketHandler$WailaCodec.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler$WailaCodec.encodeInto(WailaPacketHandler.java:55) ~[WailaPacketHandler$WailaCodec.class:?]\r\n\tat cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:51) ~[FMLIndexedMessageToMessageCodec.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0]\r\n\tat io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]\r\n\t... 27 more\r\n[14:25:06] [Server thread/ERROR] [FML/]: There was a critical exception handling a packet on channel Waila\r\nio.netty.handler.codec.EncoderException: java.lang.NullPointerException\r\n\tat io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:717) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:893) ~[DefaultChannelPipeline.class:?]\r\n\tat io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:239) ~[AbstractChannel.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler.sendTo(WailaPacketHandler.java:82) ~[WailaPacketHandler.class:?]\r\n\tat mcp.mobius.waila.network.Message0x01TERequest.channelRead0(Message0x01TERequest.java:150) ~[Message0x01TERequest.class:?]\r\n\tat mcp.mobius.waila.network.Message0x01TERequest.channelRead0(Message0x01TERequest.java:27) ~[Message0x01TERequest.class:?]\r\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[SimpleChannelInboundHandler.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]\r\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?]\r\n\tat io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?]\r\n\tat cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0]\r\n\tat net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:244) [ej.class:?]\r\n\tat net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173) [nc.class:?]\r\n\tat net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:980) [MinecraftServer.class:?]\r\n\tat net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:430) [lt.class:?]\r\n\tat net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798) [MinecraftServer.class:?]\r\n\tat net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658) [MinecraftServer.class:?]\r\n\tat java.lang.Thread.run(Unknown Source) [?:1.8.0-ea]\r\nCaused by: java.lang.NullPointerException\r\n\tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:371) ~[dh.class:?]\r\n\tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31) ~[dh.class:?]\r\n\tat net.minecraft.nbt.NBTTagList.func_74734_a(NBTTagList.java:32) ~[dq.class:?]\r\n\tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:376) ~[dh.class:?]\r\n\tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31) ~[dh.class:?]\r\n\tat net.minecraft.nbt.CompressedStreamTools.func_150663_a(CompressedStreamTools.java:149) ~[du.class:?]\r\n\tat net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:139) ~[du.class:?]\r\n\tat net.minecraft.nbt.CompressedStreamTools.func_74798_a(CompressedStreamTools.java:82) ~[du.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler.writeNBT(WailaPacketHandler.java:94) ~[WailaPacketHandler.class:?]\r\n\tat mcp.mobius.waila.network.Message0x02TENBTData.encodeInto(Message0x02TENBTData.java:23) ~[Message0x02TENBTData.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler$WailaCodec.encodeInto(WailaPacketHandler.java:69) ~[WailaPacketHandler$WailaCodec.class:?]\r\n\tat mcp.mobius.waila.network.WailaPacketHandler$WailaCodec.encodeInto(WailaPacketHandler.java:55) ~[WailaPacketHandler$WailaCodec.class:?]\r\n\tat cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:51) ~[FMLIndexedMessageToMessageCodec.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0]\r\n\tat io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:?]\r\n\tat io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:?]\r\n\t... 27 more\r\n```\r\n\r\nAnd when the other player loads the chunk this block is in, the server prints this out:\r\n\r\n```\r\n[14:23:06] [File IO Thread/WARN] [/]: java.lang.NullPointerException\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:371)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagList.func_74734_a(NBTTagList.java:32)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:376)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagList.func_74734_a(NBTTagList.java:32)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:376)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_150298_a(NBTTagCompound.java:376)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.NBTTagCompound.func_74734_a(NBTTagCompound.java:31)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.CompressedStreamTools.func_150663_a(CompressedStreamTools.java:149)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:139)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75821_a(AnvilChunkLoader.java:286)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:272)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:30)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:23)\r\n[14:23:06] [File IO Thread/WARN] [/]: \tat java.lang.Thread.run(Unknown Source)\r\n```\r\n\r\nI'm using Cauldron server with Forge#1388 with MrTJPCore-1.1.0.31 with all ProjectRed-1.7.10-4.7.0pre8.92 addons, including ProjectRed-1.7.10-4.7.0pre8.92-Fabrication that has this error in it.\r\n\r\nThe problem is in [ProjectRed/src/mrtjp/projectred/fabrication/items.scala#298](https://github.com/MrTJP/ProjectRed/blob/master/src/mrtjp/projectred/fabrication/items.scala#L298), where you don't give the ItemStack a valid stackTagCompound.\r\n\r\nI don't know Scala, so I'll write an __example__ fix in Java\r\n\r\n```java\r\n@Override\r\npublic void getSubItems(Item item, CreativeTabs tab, List list)\r\n{\r\n    NBTTagCompound comp = new NBTTagCompound();\r\n    ItemStack is = new ItemStack(this, 1, 0);\r\n    this.writeSomeDummyData(comp);\r\n    is.stackTagCompound = comp;\r\n    list.add(is);\r\n    \r\n    is = new ItemStack(this, 1, 1);\r\n    comp = new NBTTagCompound();\r\n    this.writeSomeDummyData(comp);\r\n    is.stackTagCompound = comp;\r\n    list.add(is);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/MrTJP/ProjectRed/issues/comments/131855453","html_url":"https://github.com/MrTJP/ProjectRed/issues/916#issuecomment-131855453","issue_url":"https://api.github.com/repos/MrTJP/ProjectRed/issues/916","id":131855453,"user":{"login":"evg-zhabotinsky","id":6692701,"avatar_url":"https://avatars.githubusercontent.com/u/6692701?v=3","gravatar_id":"","url":"https://api.github.com/users/evg-zhabotinsky","html_url":"https://github.com/evg-zhabotinsky","followers_url":"https://api.github.com/users/evg-zhabotinsky/followers","following_url":"https://api.github.com/users/evg-zhabotinsky/following{/other_user}","gists_url":"https://api.github.com/users/evg-zhabotinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/evg-zhabotinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evg-zhabotinsky/subscriptions","organizations_url":"https://api.github.com/users/evg-zhabotinsky/orgs","repos_url":"https://api.github.com/users/evg-zhabotinsky/repos","events_url":"https://api.github.com/users/evg-zhabotinsky/events{/privacy}","received_events_url":"https://api.github.com/users/evg-zhabotinsky/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T15:04:15Z","updated_at":"2015-08-17T15:04:15Z","body":"I *might* be wrong, but... Are *empty* ICs meant to be placeable at all?\r\nThey cannot be crafted and have no use.\r\nThe only reason I see for them to show up in NEI is for crafting recipe, but pressing `R` on them does not show any."}}