Issue #2563 fixed label issue for non-grouped roster entry

the old code assumed that the username was populated in the roster object
new code uses the userId which is always populated


Former-commit-id: 0ce560149e [formerly 73347283b6] [formerly 0ce560149e [formerly 73347283b6] [formerly d07bc465d4 [formerly 5fe0f88b3465ba65efabe2a41d1df392c85e041f]]]
Former-commit-id: d07bc465d4
Former-commit-id: 5dcaa98110 [formerly 0f4be44a23]
Former-commit-id: 70d4484473
This commit is contained in:
Brian Clements 2013-12-20 14:40:00 -06:00
parent 41f6c010af
commit 73a3213cd1

View file

@ -125,7 +125,8 @@ public class UsersTreeLabelProvider extends ColumnLabelProvider {
if (element instanceof RosterGroup) {
return ((RosterGroup) element).getName();
} else if (element instanceof RosterEntry) {
return ((RosterEntry) element).getName();
return userLabelProvider.getText(IDConverter
.convertFrom((RosterEntry) element));
} else if (element instanceof SessionGroupContainer) {
return "Active Sessions";
} else if (element instanceof UserId) {