From ab810744ecccb6b566520c9f952b4aa8fe17d697 Mon Sep 17 00:00:00 2001 From: Lucas Dallabona Date: Fri, 13 Jul 2018 00:33:05 -0300 Subject: [PATCH] #2458: Fix NPE when using null in tab list methods --- .../java/net/md_5/bungee/util/ChatComponentTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java b/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java index 2a711698..3457aaa7 100644 --- a/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java +++ b/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java @@ -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[] {