From ed23e3b3d1132a8c94a456a21594f2551ac39f29 Mon Sep 17 00:00:00 2001 From: Zhang Date: Fri, 1 Dec 2017 09:25:39 +0800 Subject: [PATCH] #2296: Fix tab list NPE w/ some offline mode clients --- proxy/src/main/java/net/md_5/bungee/tab/TabList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/tab/TabList.java b/proxy/src/main/java/net/md_5/bungee/tab/TabList.java index 7b59c757..00f57b2a 100644 --- a/proxy/src/main/java/net/md_5/bungee/tab/TabList.java +++ b/proxy/src/main/java/net/md_5/bungee/tab/TabList.java @@ -36,7 +36,7 @@ public abstract class TabList { item.setUuid( player.getUniqueId() ); LoginResult loginResult = player.getPendingConnection().getLoginProfile(); - if ( loginResult != null ) + if ( loginResult != null && loginResult.getProperties() != null ) { String[][] props = new String[ loginResult.getProperties().length ][]; for ( int i = 0; i < props.length; i++ )