diff --git a/proxy/src/main/java/net/md_5/bungee/tab/Global.java b/proxy/src/main/java/net/md_5/bungee/tab/Global.java index 56169d9c..30b7cbe5 100644 --- a/proxy/src/main/java/net/md_5/bungee/tab/Global.java +++ b/proxy/src/main/java/net/md_5/bungee/tab/Global.java @@ -113,17 +113,22 @@ public class Global extends TabList item.setUsername( player.getName() ); item.setDisplayName( ComponentSerializer.toString( TextComponent.fromLegacyText( player.getDisplayName() ) ) ); LoginResult loginResult = ( (UserConnection) player ).getPendingConnection().getLoginProfile(); - String[][] props = new String[ loginResult.getProperties().length ][]; - for ( int j = 0; j < props.length; j++ ) - { - props[ j] = new String[] + if ( loginResult != null ) { + String[][] props = new String[ loginResult.getProperties().length ][]; + for ( int j = 0; j < props.length; j++ ) { - loginResult.getProperties()[j].getName(), - loginResult.getProperties()[j].getValue(), - loginResult.getProperties()[j].getSignature() - }; + props[ j ] = new String[] + { + loginResult.getProperties()[ j ].getName(), + loginResult.getProperties()[ j ].getValue(), + loginResult.getProperties()[ j ].getSignature() + }; + } + item.setProperties( props ); + } else + { + item.setProperties( new String[ 0 ][ 0 ] ); } - item.setProperties( props ); item.setGamemode( ( (UserConnection) player ).getGamemode() ); item.setPing( player.getPing() ); packet.setItems( new PlayerListItem.Item[]