-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when deserializing 1.16 window title components via bungeecord-chat #2921
Comments
Possible fix: https://github.com/SpigotMC/BungeeCord/blob/master/chat/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java#L68 changed to |
Yes this would fix the NullPointerException. |
Just wondering; have you been able to locate where the NMS (or wherever else) is making these window titles without the value? |
Currently not since I don't have access to nms 1.16 code |
The current reference implementation of the 1.16 minecraft server produces window title chat components that are declaring a click event without any
value
property in it. This will cause a NullPointerException since there is so null check to ensure that the specificvalue
key is present in that JSON object. See: https://github.com/SpigotMC/BungeeCord/blob/master/chat/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java#L68The minecraft client is fine with that circumstances. BungeeCord should also be.
Referenced issue where this exception is a problem: Exceptionflug/protocolize#46
The text was updated successfully, but these errors were encountered: