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

NullPointerException on empty TextComponent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w02a
    • Minecraft 18w01a
    • None
    • Confirmed

      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

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

              Created:
              Updated:
              Resolved:
              CHK: