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

NullPointerException on empty TextComponent

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 18w01a
    • Minecraft 18w02a
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                CHK: