Issue #437 Check for null session in ParticipantsLabelProvider.
Change-Id: Ie327860fdf1feac700e646885a641a283fe54291 Former-commit-id:69675cf20b
[formerlye326edf566
] [formerly8dd86fc331
] [formerly69675cf20b
[formerlye326edf566
] [formerly8dd86fc331
] [formerly208f84da4d
[formerly8dd86fc331
[formerly 7e73af55a678595cb39f58e109235f9a0310d14c]]]] Former-commit-id:208f84da4d
Former-commit-id:3f7f7666b8
[formerly05399a980f
] [formerly cbd2235651f41b2540abd22793276b3487ecf1f5 [formerly11d59449ca
]] Former-commit-id: d69a46a8bef1533e9c9490aaf8831bede3463fa3 [formerly64b9af0895
] Former-commit-id:c9fcb71cb7
This commit is contained in:
parent
d29e1fa4d8
commit
97137b1eb8
1 changed files with 9 additions and 3 deletions
|
@ -36,6 +36,7 @@ import org.eclipse.swt.graphics.Image;
|
||||||
import org.eclipse.swt.widgets.Display;
|
import org.eclipse.swt.widgets.Display;
|
||||||
|
|
||||||
import com.raytheon.uf.viz.collaboration.comm.identity.ISharedDisplaySession;
|
import com.raytheon.uf.viz.collaboration.comm.identity.ISharedDisplaySession;
|
||||||
|
import com.raytheon.uf.viz.collaboration.comm.identity.IVenueSession;
|
||||||
import com.raytheon.uf.viz.collaboration.comm.identity.user.ParticipantRole;
|
import com.raytheon.uf.viz.collaboration.comm.identity.user.ParticipantRole;
|
||||||
import com.raytheon.uf.viz.collaboration.data.CollaborationDataManager;
|
import com.raytheon.uf.viz.collaboration.data.CollaborationDataManager;
|
||||||
import com.raytheon.uf.viz.collaboration.data.CollaborationUser;
|
import com.raytheon.uf.viz.collaboration.data.CollaborationUser;
|
||||||
|
@ -100,6 +101,13 @@ public class ParticipantsLabelProvider implements ITableColorProvider,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Image getColumnImage(Object element, int columnIndex) {
|
public Image getColumnImage(Object element, int columnIndex) {
|
||||||
|
IVenueSession session = CollaborationDataManager.getInstance()
|
||||||
|
.getSession(sessionId);
|
||||||
|
|
||||||
|
if (session == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
CollaborationUser user = (CollaborationUser) element;
|
CollaborationUser user = (CollaborationUser) element;
|
||||||
Image image = null;
|
Image image = null;
|
||||||
String key = user.getImageKey();
|
String key = user.getImageKey();
|
||||||
|
@ -114,9 +122,7 @@ public class ParticipantsLabelProvider implements ITableColorProvider,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (image != null) {
|
if (image != null) {
|
||||||
CollaborationDataManager.getInstance().getSession(sessionId);
|
ISharedDisplaySession sdSession = session
|
||||||
ISharedDisplaySession sdSession = CollaborationDataManager
|
|
||||||
.getInstance().getSession(sessionId)
|
|
||||||
.spawnSharedDisplaySession();
|
.spawnSharedDisplaySession();
|
||||||
String userId = user.getId();
|
String userId = user.getId();
|
||||||
String sessionLeaderId = CollaborationUtils.makeUserId(sdSession
|
String sessionLeaderId = CollaborationUtils.makeUserId(sdSession
|
||||||
|
|
Loading…
Add table
Reference in a new issue