Jump to content

[1.7.2] NullPointerException: Rendering item


virhonestum

Recommended Posts

I have created a custom basic item and it works fine as long as you don't try to craft the Item. As soon as you place teh last item in the crafting table Minecraft shuts down the internal server and closes. It says it can't get the Item Damage (The item should not be damageable)

This is in the console:

 

[18:45:00] [Client thread/FATAL]: Reported exception thrown!

net.minecraft.util.ReportedException: Rendering item

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1239) ~[EntityRenderer.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1063) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

Caused by: java.lang.NullPointerException

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266) ~[itemStack.class:?]

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421) ~[RenderItem.class:?]

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565) ~[RenderItem.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:305) ~[GuiContainer.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:132) ~[GuiContainer.class:?]

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209) ~[EntityRenderer.class:?]

... 9 more

---- Minecraft Crash Report ----

// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

 

Time: 04.03.14 18:45

Description: Rendering item

 

java.lang.NullPointerException: Rendering item

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421)

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:305)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:132)

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1063)

at net.minecraft.client.Minecraft.run(Minecraft.java:951)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421)

 

-- Item being rendered --

Details:

Item Type: null

Item Aux: ~~ERROR~~ NullPointerException: null

Item NBT: null

Item Foil: ~~ERROR~~ NullPointerException: null

Stacktrace:

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:305)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:132)

 

-- Screen render details --

Details:

Screen name: net.minecraft.client.gui.inventory.GuiCrafting

Mouse location: Scaled: (183, 78). Absolute: (367, 323)

Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player956'/307, l='MpServer', x=64,30, y=67,62, z=-197,28]]

Chunk stats: MultiplayerChunkCache: 225, 225

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (56,64,-196), Chunk: (at 8,4,12 in 3,-13; contains blocks 48,0,-208 to 63,255,-193), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)

Level time: 1841 game time, 1841 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 134 total; [EntityZombie['Zombie'/39, l='MpServer', x=-12,69, y=15,00, z=-245,31], EntityClientPlayerMP['Player956'/307, l='MpServer', x=64,30, y=67,62, z=-197,28], EntitySkeleton['Skeleton'/42, l='MpServer', x=-12,09, y=13,00, z=-240,47], EntitySkeleton['Skeleton'/43, l='MpServer', x=-10,41, y=14,00, z=-251,69], EntitySkeleton['Skeleton'/40, l='MpServer', x=-11,50, y=11,00, z=-237,06], EntitySkeleton['Skeleton'/41, l='MpServer', x=-12,59, y=14,00, z=-252,09], EntitySkeleton['Skeleton'/46, l='MpServer', x=-8,50, y=14,00, z=-248,50], EntitySkeleton['Skeleton'/47, l='MpServer', x=-6,50, y=14,00, z=-245,50], EntitySkeleton['Skeleton'/44, l='MpServer', x=-8,50, y=14,00, z=-249,50], EntitySkeleton['Skeleton'/45, l='MpServer', x=-8,50, y=13,00, z=-247,34], EntityBat['Bat'/51, l='MpServer', x=-9,94, y=15,79, z=-244,63], EntityBat['Bat'/50, l='MpServer', x=-14,50, y=18,10, z=-241,25], EntitySkeleton['Skeleton'/48, l='MpServer', x=-14,13, y=14,00, z=-252,44], EntitySkeleton['Skeleton'/55, l='MpServer', x=-0,50, y=21,00, z=-236,50], EntityCreeper['Creeper'/54, l='MpServer', x=-7,50, y=12,00, z=-224,50], EntityCreeper['Creeper'/53, l='MpServer', x=-4,50, y=12,00, z=-226,50], EntityBat['Bat'/52, l='MpServer', x=-11,03, y=20,00, z=-235,97], EntityCreeper['Creeper'/57, l='MpServer', x=-14,50, y=19,00, z=-236,50], EntitySkeleton['Skeleton'/56, l='MpServer', x=-1,50, y=21,00, z=-237,50], EntityBat['Bat'/68, l='MpServer', x=-5,38, y=21,02, z=-233,25], EntitySkeleton['Skeleton'/69, l='MpServer', x=10,50, y=35,00, z=-238,50], EntitySkeleton['Skeleton'/70, l='MpServer', x=12,50, y=38,00, z=-236,50], EntityZombie['Zombie'/71, l='MpServer', x=11,50, y=36,00, z=-237,50], EntitySquid['Squid'/65, l='MpServer', x=4,88, y=56,81, z=-263,94], EntitySquid['Squid'/66, l='MpServer', x=6,34, y=50,13, z=-242,56], EntityBat['Bat'/67, l='MpServer', x=1,75, y=21,00, z=-238,50], EntitySquid['Squid'/76, l='MpServer', x=9,03, y=53,91, z=-157,03], EntitySquid['Squid'/77, l='MpServer', x=11,81, y=54,75, z=-149,38], EntitySquid['Squid'/79, l='MpServer', x=7,84, y=54,19, z=-148,22], EntitySquid['Squid'/72, l='MpServer', x=16,38, y=48,75, z=-236,16], EntitySquid['Squid'/73, l='MpServer', x=20,13, y=46,19, z=-217,25], EntitySquid['Squid'/74, l='MpServer', x=7,69, y=48,34, z=-213,97], EntitySquid['Squid'/75, l='MpServer', x=14,38, y=51,94, z=-206,44], EntitySquid['Squid'/81, l='MpServer', x=5,41, y=48,00, z=-134,53], EntitySquid['Squid'/80, l='MpServer', x=7,81, y=54,88, z=-144,13], EntityCreeper['Creeper'/93, l='MpServer', x=17,31, y=31,00, z=-239,50], EntityCreeper['Creeper'/92, l='MpServer', x=18,34, y=30,00, z=-239,50], EntitySquid['Squid'/95, l='MpServer', x=17,22, y=50,38, z=-206,50], EntityBat['Bat'/94, l='MpServer', x=25,28, y=27,95, z=-222,66], EntityBat['Bat'/91, l='MpServer', x=26,72, y=22,96, z=-251,88], EntityBat['Bat'/90, l='MpServer', x=30,09, y=22,57, z=-252,44], EntitySquid['Squid'/102, l='MpServer', x=32,19, y=45,66, z=-143,38], EntitySquid['Squid'/100, l='MpServer', x=30,44, y=44,72, z=-144,78], EntitySquid['Squid'/101, l='MpServer', x=27,56, y=48,38, z=-146,06], EntitySquid['Squid'/98, l='MpServer', x=17,75, y=47,75, z=-211,38], EntityChicken['Chicken'/99, l='MpServer', x=36,59, y=62,61, z=-195,37], EntitySquid['Squid'/96, l='MpServer', x=24,59, y=46,34, z=-212,94], EntitySquid['Squid'/97, l='MpServer', x=20,91, y=48,34, z=-207,56], EntityCreeper['Creeper'/110, l='MpServer', x=42,47, y=23,00, z=-260,00], EntitySquid['Squid'/111, l='MpServer', x=33,59, y=56,97, z=-247,28], EntityCreeper['Creeper'/108, l='MpServer', x=43,50, y=25,00, z=-259,50], EntitySkeleton['Skeleton'/109, l='MpServer', x=36,50, y=27,00, z=-247,50], EntityEnderman['Enderman'/107, l='MpServer', x=41,44, y=24,00, z=-256,53], EntityChicken['Chicken'/119, l='MpServer', x=46,51, y=67,57, z=-193,38], EntityCreeper['Creeper'/118, l='MpServer', x=44,38, y=38,00, z=-230,03], EntitySkeleton['Skeleton'/117, l='MpServer', x=46,50, y=37,00, z=-227,50], EntitySkeleton['Skeleton'/116, l='MpServer', x=44,50, y=37,00, z=-226,50], EntitySkeleton['Skeleton'/115, l='MpServer', x=47,50, y=38,00, z=-229,09], EntityCreeper['Creeper'/114, l='MpServer', x=46,50, y=31,00, z=-226,50], EntitySquid['Squid'/113, l='MpServer', x=42,50, y=57,34, z=-247,03], EntitySquid['Squid'/112, l='MpServer', x=41,81, y=58,34, z=-241,50], EntityZombie['Zombie'/127, l='MpServer', x=34,50, y=20,00, z=-137,50], EntitySquid['Squid'/126, l='MpServer', x=31,94, y=44,19, z=-147,16], EntityZombie['Zombie'/125, l='MpServer', x=47,03, y=27,00, z=-158,38], EntityZombie['Zombie'/124, l='MpServer', x=45,50, y=28,00, z=-157,50], EntitySkeleton['Skeleton'/123, l='MpServer', x=42,66, y=28,00, z=-157,50], EntitySkeleton['Skeleton'/122, l='MpServer', x=43,69, y=28,00, z=-154,75], EntityCreeper['Creeper'/121, l='MpServer', x=39,69, y=29,00, z=-164,69], EntityChicken['Chicken'/120, l='MpServer', x=31,56, y=62,42, z=-206,41], EntitySkeleton['Skeleton'/137, l='MpServer', x=50,50, y=38,00, z=-241,50], EntitySkeleton['Skeleton'/136, l='MpServer', x=58,50, y=26,00, z=-251,50], EntityZombie['Zombie'/139, l='MpServer', x=50,50, y=37,00, z=-232,50], EntityCreeper['Creeper'/138, l='MpServer', x=55,50, y=33,00, z=-255,50], EntityPig['Pig'/141, l='MpServer', x=48,09, y=63,00, z=-225,75], EntityZombie['Zombie'/140, l='MpServer', x=50,50, y=37,00, z=-233,50], EntityChicken['Chicken'/143, l='MpServer', x=56,47, y=70,00, z=-218,44], EntityCreeper['Creeper'/142, l='MpServer', x=50,50, y=26,00, z=-223,50], EntityZombie['Zombie'/131, l='MpServer', x=56,50, y=18,00, z=-272,50], EntitySkeleton['Skeleton'/135, l='MpServer', x=62,50, y=33,00, z=-258,50], EntitySkeleton['Skeleton'/134, l='MpServer', x=63,50, y=32,00, z=-258,50], EntitySpider['Spider'/152, l='MpServer', x=54,13, y=27,00, z=-159,06], EntityCreeper['Creeper'/153, l='MpServer', x=49,50, y=27,00, z=-153,50], EntityCreeper['Creeper'/154, l='MpServer', x=50,50, y=27,00, z=-153,50], EntityBat['Bat'/155, l='MpServer', x=63,28, y=26,10, z=-146,84], EntityZombie['Zombie'/156, l='MpServer', x=63,50, y=27,00, z=-157,50], EntityBat['Bat'/157, l='MpServer', x=53,56, y=27,10, z=-148,78], EntityCreeper['Creeper'/158, l='MpServer', x=55,50, y=26,00, z=-142,00], EntityZombie['Zombie'/159, l='MpServer', x=56,53, y=26,00, z=-141,97], EntityPig['Pig'/144, l='MpServer', x=62,50, y=67,00, z=-208,41], EntityPig['Pig'/145, l='MpServer', x=47,98, y=68,00, z=-191,50], EntityPig['Pig'/146, l='MpServer', x=48,91, y=68,00, z=-205,97], EntityZombie['Zombie'/147, l='MpServer', x=53,69, y=21,36, z=-167,70], EntitySkeleton['Skeleton'/148, l='MpServer', x=53,50, y=22,00, z=-164,50], EntityZombie['Zombie'/149, l='MpServer', x=51,50, y=22,00, z=-164,50], EntitySpider['Spider'/150, l='MpServer', x=50,50, y=27,00, z=-156,16], EntityZombie['Zombie'/151, l='MpServer', x=57,59, y=28,00, z=-157,97], EntityCreeper['Creeper'/171, l='MpServer', x=67,06, y=14,00, z=-182,69], EntityBat['Bat'/652, l='MpServer', x=50,71, y=26,76, z=-194,56], EntityCreeper['Creeper'/170, l='MpServer', x=68,00, y=14,00, z=-182,66], EntitySkeleton['Skeleton'/169, l='MpServer', x=79,41, y=27,00, z=-245,41], EntitySkeleton['Skeleton'/168, l='MpServer', x=79,69, y=26,00, z=-253,70], EntitySpider['Spider'/175, l='MpServer', x=77,41, y=18,00, z=-148,13], EntitySkeleton['Skeleton'/174, l='MpServer', x=77,41, y=18,17, z=-148,13], EntitySquid['Squid'/173, l='MpServer', x=74,83, y=47,85, z=-173,75], EntitySkeleton['Skeleton'/172, l='MpServer', x=66,22, y=14,00, z=-182,69], EntityCreeper['Creeper'/167, l='MpServer', x=63,50, y=27,00, z=-247,69], EntityCreeper['Creeper'/166, l='MpServer', x=69,50, y=29,00, z=-244,50], EntityBat['Bat'/165, l='MpServer', x=66,53, y=26,89, z=-248,72], EntityCreeper['Creeper'/178, l='MpServer', x=77,50, y=17,00, z=-149,72], EntitySquid['Squid'/179, l='MpServer', x=79,13, y=52,34, z=-154,13], EntityCreeper['Creeper'/176, l='MpServer', x=65,50, y=26,00, z=-154,50], EntitySkeleton['Skeleton'/177, l='MpServer', x=77,50, y=17,00, z=-150,75], EntitySquid['Squid'/182, l='MpServer', x=70,38, y=60,38, z=-148,84], EntityCreeper['Creeper'/180, l='MpServer', x=69,50, y=19,00, z=-131,50], EntitySkeleton['Skeleton'/201, l='MpServer', x=82,50, y=27,00, z=-249,50], EntityBat['Bat'/200, l='MpServer', x=81,53, y=30,42, z=-243,13], EntitySquid['Squid'/203, l='MpServer', x=89,19, y=60,03, z=-135,97], EntityCreeper['Creeper'/202, l='MpServer', x=87,50, y=47,00, z=-255,50], EntitySquid['Squid'/220, l='MpServer', x=123,22, y=59,03, z=-258,97], EntitySquid['Squid'/221, l='MpServer', x=122,50, y=58,25, z=-252,66], EntitySquid['Squid'/222, l='MpServer', x=121,63, y=60,00, z=-244,63], EntitySquid['Squid'/223, l='MpServer', x=128,13, y=61,34, z=-253,06], EntitySquid['Squid'/216, l='MpServer', x=101,41, y=50,38, z=-260,47], EntitySquid['Squid'/217, l='MpServer', x=102,13, y=61,75, z=-195,50], EntitySquid['Squid'/215, l='MpServer', x=97,50, y=49,28, z=-257,50], EntityBat['Bat'/987, l='MpServer', x=59,78, y=24,79, z=-256,25], EntitySquid['Squid'/238, l='MpServer', x=122,94, y=59,25, z=-218,38], EntityBat['Bat'/988, l='MpServer', x=57,31, y=25,39, z=-257,66], EntitySquid['Squid'/228, l='MpServer', x=119,50, y=59,69, z=-193,19], EntitySquid['Squid'/227, l='MpServer', x=113,38, y=60,19, z=-195,53], EntitySquid['Squid'/226, l='MpServer', x=127,25, y=53,00, z=-205,91], EntitySquid['Squid'/225, l='MpServer', x=126,28, y=52,00, z=-192,16], EntitySquid['Squid'/224, l='MpServer', x=122,44, y=53,34, z=-193,31], EntitySquid['Squid'/242, l='MpServer', x=122,38, y=55,38, z=-200,41]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:418)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556)

at net.minecraft.client.Minecraft.run(Minecraft.java:973)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

Thank you

Virhonestum

Link to comment
Share on other sites

Without code we can't help you, although this is particularly puzzling:

 

java.lang.NullPointerException: Rendering item
   at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266)

 

NPE at getItemDamage() ?!

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.