When a command contains a text component that is valid SNBT but not a valid component, the game no longer says what is wrong with it and shows a raw Java NullPointerException message instead. This affects minecraft:component and minecraft:style arguments. Regression introduced in 26.4 snapshot 8.
Steps to Reproduce
Open a world with cheats enabled.
Run
/tellraw @s {"text":"Hello","color":"nope"}Look at the error message.
Observed Result:Could not parse command: Cannot invoke "com.mojang.brigadier.exceptions.DynamicCommandExceptionType.createWithContext(com.mojang.brigadier.ImmutableStringReader, Object)" because "exceptionType" is null...ellraw @a {"text":"a","color":"nope"}<--[HERE]
Expected Result:Invalid chat component 'Invalid color name: nope'...ellraw @a {"text":"a","color":"nope"}<--[HERE] (for styles: Invalid style 'Invalid color name: nope')
Comments 0
No comments.