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

NullPointerException on empty TextComponent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 18w01a
    • Fix Version/s: Minecraft 18w02a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      The Bug

      When use an empty TextComponent ( [] ), it says java.lang.NullPointerException in the chat.

      How to reproduce:

      /tellraw @s []
      

      or

      /title @s title []
      

      But for signs, it works as expected:

      /setblock ~ ~ ~ sign{Text1:"{\"text\":\"\",\"extra\":[]}"}
      

      Unexpected empty array of components

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dinnerbone [Mojang] Nathan Adams
                Reporter:
                MaxiHuHe04 Maximilian Herczegh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: