Skip to content
Snippets Groups Projects
Commit ce8f2ac2 authored by srosse's avatar srosse
Browse files

OO-610: fix NPE if the roster controller is null

parent bafab0fe
No related branches found
No related tags found
No related merge requests found
...@@ -336,7 +336,9 @@ public class InstantMessagingMainController extends BasicController implements G ...@@ -336,7 +336,9 @@ public class InstantMessagingMainController extends BasicController implements G
inAssessment = true; inAssessment = true;
main.contextPut("inAssessment", true); main.contextPut("inAssessment", true);
chatMgrCtrl.closeAllChats(); chatMgrCtrl.closeAllChats();
rosterPanelCtr.executeCloseCommand(); if(rosterPanelCtr != null) {
rosterPanelCtr.executeCloseCommand();
}
} else if(event.getEventType().equals(AssessmentEvent.TYPE.STOPPED)) { } else if(event.getEventType().equals(AssessmentEvent.TYPE.STOPPED)) {
OLATResourceable a = OresHelper.createOLATResourceableType(AssessmentInstance.class); OLATResourceable a = OresHelper.createOLATResourceableType(AssessmentInstance.class);
if (singleUserEventCenter.getListeningIdentityCntFor(a) < 1) { if (singleUserEventCenter.getListeningIdentityCntFor(a) < 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment