mojira.dev
MC-123812

Malformed JSON in item names crashes the client

When malformed JSON is used to name an item (pretty sure bold is not correct):
/give @p diamond_sword{display:{Name:"blah"}}

The client will crash and the game will close. However, it gives the item correctly.

If you load the world again, the item is still there and any attempt of hovering over it or selecting it in the hotbar will crash the client again.

I have attached the crash report.

Linked issues

Attachments

Comments 0

No comments.

Tedstar (Curtis Anderson)

(Unassigned)

Confirmed

Minecraft 18w01a

Retrieved