Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-123812

Malformed JSON in item names crashes the client

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Minecraft 18w01a
    • None
    • None
    • Windows 10, Minecraft 18w01a, Bundled java runtime
    • Confirmed

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Tedstar Tedstar (Curtis Anderson)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: