mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 01:27:38 +01:00
#2458: Fix NPE when using null in tab list methods
This commit is contained in:
parent
b1cc72e212
commit
ab810744ec
@ -51,7 +51,7 @@ public final class ChatComponentTransformer
|
||||
*/
|
||||
public BaseComponent[] transform(ProxiedPlayer player, BaseComponent... component)
|
||||
{
|
||||
if ( component == null || component.length < 1 )
|
||||
if ( component == null || component.length < 1 || ( component.length == 1 && component[0] == null ) )
|
||||
{
|
||||
return new BaseComponent[]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user