From 96b1fb1f0e5430829dd8a54ed24db5ab75c3c49f Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 30 Jan 2019 16:17:55 +1100 Subject: [PATCH] #2593: Fix null tooltip string v2 --- .../net/md_5/bungee/protocol/packet/TabCompleteResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteResponse.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteResponse.java index 7206bed5..79384bf5 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteResponse.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteResponse.java @@ -78,7 +78,7 @@ public class TabCompleteResponse extends DefinedPacket for ( Suggestion suggestion : suggestions.getList() ) { writeString( suggestion.getText(), buf ); - buf.writeBoolean( suggestion.getTooltip() != null ); + buf.writeBoolean( suggestion.getTooltip() != null && suggestion.getTooltip().getString() != null ); if ( suggestion.getTooltip() != null && suggestion.getTooltip().getString() != null ) { writeString( suggestion.getTooltip().getString(), buf );