[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
Environment:

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

 Description   

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.



 Comments   
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 Thu Jun 21 16:51:05 CDT 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.