From e93c762f164b45af15b577a1372044958b97cbef Mon Sep 17 00:00:00 2001 From: Mystiflow Date: Sat, 22 Aug 2020 17:50:54 +1000 Subject: [PATCH] #2921: ClickEvent without value exceptions in window title --- .../main/java/net/md_5/bungee/chat/BaseComponentSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java b/chat/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java index efffa905..ae69b231 100644 --- a/chat/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java +++ b/chat/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java @@ -65,7 +65,7 @@ public class BaseComponentSerializer JsonObject event = object.getAsJsonObject( "clickEvent" ); component.setClickEvent( new ClickEvent( ClickEvent.Action.valueOf( event.get( "action" ).getAsString().toUpperCase( Locale.ROOT ) ), - event.get( "value" ).getAsString() ) ); + ( event.has( "value" ) ) ? event.get( "value" ).getAsString() : "" ) ); } if ( object.has( "hoverEvent" ) ) {