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

OO-790: forget to check null in the event method of the question item list controller

parent cc4696c9
No related branches found
No related tags found
No related merge requests found
......@@ -198,10 +198,14 @@ public abstract class AbstractItemListController extends FormBasicController
SelectionEvent se = (SelectionEvent)event;
if("rSelect".equals(se.getCommand())) {
ItemRow row = model.getObject(se.getIndex());
doClick(ureq, row);
if(row != null) {
doClick(ureq, row);
}
} else if("select-item".equals(se.getCommand())) {
ItemRow row = getModel().getObject(se.getIndex());
doSelect(ureq, row);
if(row != null) {
doSelect(ureq, row);
}
}
}
} else if(source instanceof FormLink) {
......
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