Skip to content

Commit

Permalink
SpigotMC#2296: Fix tab list NPE w/ some offline mode clients
Browse files Browse the repository at this point in the history
  • Loading branch information
caoli5288 authored and md-5 committed Dec 1, 2017
1 parent 1dbfcfb commit ed23e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/src/main/java/net/md_5/bungee/tab/TabList.java
Expand Up @@ -36,7 +36,7 @@ public static PlayerListItem rewrite(PlayerListItem playerListItem)
{
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++ )
Expand Down

0 comments on commit ed23e3b

Please sign in to comment.