Issue #437 Check for null session in ParticipantsLabelProvider.
Change-Id: Ie327860fdf1feac700e646885a641a283fe54291 Former-commit-id: 7e73af55a678595cb39f58e109235f9a0310d14c
This commit is contained in:
parent
cca947d3ec
commit
208f84da4d
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 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.data.CollaborationDataManager;
|
||||
import com.raytheon.uf.viz.collaboration.data.CollaborationUser;
|
||||
|
@ -100,6 +101,13 @@ public class ParticipantsLabelProvider implements ITableColorProvider,
|
|||
|
||||
@Override
|
||||
public Image getColumnImage(Object element, int columnIndex) {
|
||||
IVenueSession session = CollaborationDataManager.getInstance()
|
||||
.getSession(sessionId);
|
||||
|
||||
if (session == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
CollaborationUser user = (CollaborationUser) element;
|
||||
Image image = null;
|
||||
String key = user.getImageKey();
|
||||
|
@ -114,9 +122,7 @@ public class ParticipantsLabelProvider implements ITableColorProvider,
|
|||
}
|
||||
|
||||
if (image != null) {
|
||||
CollaborationDataManager.getInstance().getSession(sessionId);
|
||||
ISharedDisplaySession sdSession = CollaborationDataManager
|
||||
.getInstance().getSession(sessionId)
|
||||
ISharedDisplaySession sdSession = session
|
||||
.spawnSharedDisplaySession();
|
||||
String userId = user.getId();
|
||||
String sessionLeaderId = CollaborationUtils.makeUserId(sdSession
|
||||
|
|
Loading…
Add table
Reference in a new issue