Mojira Archive
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

Fixed

Maximilian Herczegh

[Mojang] Nathan Adams

2018-01-04, 11:18 PM

2018-01-08, 03:41 PM

2018-01-08, 03:41 PM

0

2

Confirmed

Minecraft 18w01a

Minecraft 18w02a