From a05e695db9438c33207e4584ca10c7e9cda5683f Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 18 Jul 2016 13:32:17 +1000 Subject: [PATCH] Initialize no args TextComponent with blank text. --- .../java/net/md_5/bungee/api/chat/TextComponent.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java index 49214f87..15a26785 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java @@ -14,7 +14,6 @@ import java.util.regex.Pattern; @Getter @Setter @AllArgsConstructor -@NoArgsConstructor public class TextComponent extends BaseComponent { @@ -135,6 +134,14 @@ public class TextComponent extends BaseComponent */ private String text; + /** + * Creates a TextComponent with blank text. + */ + public TextComponent() + { + this.text = ""; + } + /** * Creates a TextComponent with formatting and text from the passed * component