From 2e4b08e5ab457802d862b6aa0cb02bb24e6b5ca9 Mon Sep 17 00:00:00 2001 From: Mystiflow Date: Wed, 1 Jul 2020 22:29:10 +0100 Subject: [PATCH] #2878: Null check hover event before transform --- .../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 8b483fe2..f0324f22 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 @@ -41,7 +41,7 @@ public final class ChatComponentTransformer for ( int i = 0; i < components.length; i++ ) { BaseComponent next = components[i]; - if ( next.getHoverEvent().isLegacy() ) + if ( next.getHoverEvent() == null || next.getHoverEvent().isLegacy() ) { continue; }