Fix TabList NPE
This commit is contained in:
@@ -252,7 +252,8 @@ public class VelocityTabList implements InternalTabList {
|
|||||||
currentEntry.setLatencyWithoutUpdate(entry.getLatency());
|
currentEntry.setLatencyWithoutUpdate(entry.getLatency());
|
||||||
}
|
}
|
||||||
if (actions.contains(UpsertPlayerInfo.Action.UPDATE_DISPLAY_NAME)) {
|
if (actions.contains(UpsertPlayerInfo.Action.UPDATE_DISPLAY_NAME)) {
|
||||||
currentEntry.setDisplayNameWithoutUpdate(entry.getDisplayName().getComponent());
|
currentEntry.setDisplayNameWithoutUpdate(entry.getDisplayName() != null
|
||||||
|
? entry.getDisplayName().getComponent() : null);
|
||||||
}
|
}
|
||||||
if (actions.contains(UpsertPlayerInfo.Action.INITIALIZE_CHAT)) {
|
if (actions.contains(UpsertPlayerInfo.Action.INITIALIZE_CHAT)) {
|
||||||
currentEntry.setChatSession(entry.getChatSession());
|
currentEntry.setChatSession(entry.getChatSession());
|
||||||
@@ -268,4 +269,4 @@ public class VelocityTabList implements InternalTabList {
|
|||||||
this.entries.remove(uuid);
|
this.entries.remove(uuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user