A specific action bar received by Geyser cannot be serialized using the legacy serializer. The offending component was logged to console by the reporting user:
The following error occurs while trying to serialize the component to legacy text:
Cannot invoke "String.isEmpty()" because "text" is null
java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "text" is null
at net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl$Cereal.component(LegacyComponentSerializerImpl.java:326)
at net.kyori.adventure.text.flattener.ComponentFlattenerImpl.lambda$flattener$3(ComponentFlattenerImpl.java:117)
at net.kyori.adventure.text.flattener.ComponentFlattenerImpl.flatten0(ComponentFlattenerImpl.java:95)
at net.kyori.adventure.text.flattener.ComponentFlattenerImpl.flatten(ComponentFlattenerImpl.java:78)
at net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerImpl.serialize(LegacyComponentSerializerImpl.java:271)
at me.konicai.test.ActionBarTest.testThing(ActionBarTest.java:18)
The plain text serializer works fine and creates the following output (null at the front seems smelly):
A specific action bar received by Geyser cannot be serialized using the legacy serializer. The offending component was logged to console by the reporting user:
I was able to reproduce the issue and have posted it a test project here:
The following error occurs while trying to serialize the component to legacy text:
The plain text serializer works fine and creates the following output (null at the front seems smelly):
This occurs with
4.14.0
, which the test project is running (unlike Geyser). The affected code in Geyser begins here.