#2296: Fix tab list NPE w/ some offline mode clients

This commit is contained in:
Zhang 2017-12-01 09:25:39 +08:00 committed by md-5
parent 1dbfcfb0b5
commit ed23e3b3d1

View File

@ -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++ )