[MC-51214] Fireworks given with empty FadeColors crashes the client when hovered Created: 14/Mar/14  Updated: 22/Mar/14  Resolved: 22/Mar/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.7.5
Fix Version/s: Minecraft 14w11b

Type: Bug
Reporter: ben dem Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Windows 8.1 x64

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Attachments: Text File crash-2014-03-14_12.59.04-client.txt    
Confirmation Status: Unconfirmed


This command give an object which crashes the game :

/give @p minecraft:fireworks 1 0 {Fireworks:{Flight:1,Explosions:[{Type:0,Flicker:0,Trail:0,Colors:[9994712],FadeColors:[]}]}}

This command give an object which doesn't crash the game :

/give @p minecraft:fireworks 1 0 {Fireworks:{Flight:1,Explosions:[{Type:0,Flicker:0,Trail:0,Colors:[9994712]}]}}

The firework is given to the player but when it is hovered to see the tooltip, The game crashes with the bug report I joined.

Comment by CraftyMiner [ 14/Mar/14 ]

Maybe you shouldn't have an empty FadeColors NBT tag.
Why did you add this?

Comment by ben dem [ 14/Mar/14 ]

That's automatically generated... I changed the generation but shouldn't this be checked when setting the NBT tag and rejected when the item is created...

Comment by Itouch2 [ 22/Mar/14 ]

Doesn't crash in 14w11b. Seems to be fixed.

Comment by ben dem [ 22/Mar/14 ]

Yeah, it is

Generated at Wed Jan 16 02:44:54 CST 2019 using Jira 7.11.2#711002-sha1:fdc329dee91471a641faabfe39b5ff8c0a5b3f66.