From a0dd4f5c575e0320c58b9a29312469f665b0ae03 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 17 Feb 2023 17:08:59 +0100 Subject: [PATCH] HotFix Tablistpart Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/tablist/TablistPart.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/tablist/TablistPart.java b/src/de/steamwar/bungeecore/tablist/TablistPart.java index b140114d..e784d789 100644 --- a/src/de/steamwar/bungeecore/tablist/TablistPart.java +++ b/src/de/steamwar/bungeecore/tablist/TablistPart.java @@ -38,7 +38,11 @@ interface TablistPart { class Item { public static Property[] playerProperties(ProxiedPlayer player) { - return ((InitialHandler) player.getPendingConnection()).getLoginProfile().getProperties(); + InitialHandler handler = (InitialHandler) player.getPendingConnection(); + if(handler == null) + return new Property[0]; + + return handler.getLoginProfile().getProperties(); } private final UUID uuid;