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

OO-1041: check if the autocompleter is instantiated in the event loop, because it can be disabled

parent 03baf65e
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ public class UserSearchFlexiController extends FlexiAutoCompleterController {
public void event(UserRequest ureq, Component source, Event event) {
if (source == backLink) {
flc.contextPut("showButton","false");
} else if(source == autoCompleterContainer.getComponent()) {
} else if(autoCompleterContainer != null && source == autoCompleterContainer.getComponent()) {
if (event.getCommand().equals(COMMAND_SELECT)) {
doSelect(ureq);
}
......@@ -253,9 +253,6 @@ public class UserSearchFlexiController extends FlexiAutoCompleterController {
}
}
/**
*
*/
@Override
protected void doFireSelection(UserRequest ureq, List<String> res) {
// if we get the event, we have a result or an incorrect selection see OLAT-5114 -> check for empty
......
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