Omaha #3267 fixed collaboration NPE possibility
Change-Id: I9bc68be7d9106396a0c369e3181e15baf25ca260 Former-commit-id:667cda6c19
[formerly42e6e38c2e
] [formerlyadbffa5ddd
] [formerly91eb7d40c2
[formerlyadbffa5ddd
[formerly a23e57f3d1a6f4213216a7e038b85b17b6628faa]]] Former-commit-id:91eb7d40c2
Former-commit-id: 6dcce07d15edffe9b65d033992c7dff4c59bc36b [formerly3bdbf79eeb
] Former-commit-id:b1fac777f4
This commit is contained in:
parent
d123e7126b
commit
54081d0255
1 changed files with 7 additions and 1 deletions
|
@ -63,6 +63,7 @@ import com.raytheon.uf.viz.collaboration.ui.data.SessionGroupContainer;
|
|||
* Feb 13, 2014 2751 bclement made AbstractUsersLabelProvider generic
|
||||
* Feb 17, 2014 2751 bclement added block image logic to userLabelProvider
|
||||
* Mar 06, 2014 2848 bclement get venueName directly from session
|
||||
* Jun 12, 2014 3267 bclement fixed missing null-check for outdated UI info
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -122,7 +123,12 @@ public class UsersTreeLabelProvider extends ColumnLabelProvider {
|
|||
if (!account.isSameUser(user)) {
|
||||
ContactsManager cm = conn.getContactsManager();
|
||||
RosterEntry entry = cm.getRosterEntry(user);
|
||||
if (ContactsManager.isBlocked(entry)) {
|
||||
/*
|
||||
* if entry is null here, it means that the UI has an outdated
|
||||
* roster entry, this will get resolved on the next refresh
|
||||
* which is likely already starting to happen right now
|
||||
*/
|
||||
if (entry != null && ContactsManager.isBlocked(entry)) {
|
||||
rval = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue