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

Malformed JSON in item names crashes the client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 18w01a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Windows 10, Minecraft 18w01a, Bundled java runtime

    • Confirmation Status:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: