mojira.dev
MC-123891

NullPointerException on empty TextComponent

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

Linked issues

Comments 3

Please attach the crash report ([minecraft|http://hopper.minecraft.net/help/guides/finding-minecraft-data-folder/]/crash-reports/crash-<DATE>-client.txt), otherwise we can not diagnose this issue.
For technical support please use the Mojang Support Center.

-- I am a bot. This action was performed automagically!

Maximilian Herczegh

There is nothing more than [CHAT] java.lang.NullPointerException in the logs

Relates to MC-87587

Maximilian Herczegh

Nathan Adams

Confirmed

Minecraft 18w01a

Minecraft 18w02a

Retrieved