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

OO-4843: correction column doesn't always exists

parent ae11e2ac
No related branches found
No related tags found
No related merge requests found
...@@ -276,9 +276,11 @@ public class QTI21AssessmentDetailsController extends FormBasicController { ...@@ -276,9 +276,11 @@ public class QTI21AssessmentDetailsController extends FormBasicController {
.booleanValue(); .booleanValue();
infos.add(forgeDetailsRow(sessionStatistics)); infos.add(forgeDetailsRow(sessionStatistics));
} }
correctionCol.setAlwaysVisible(manualCorrections); if(correctionCol != null) {
correctionCol.setDefaultVisible(manualCorrections); correctionCol.setAlwaysVisible(manualCorrections);
tableEl.setColumnModelVisible(correctionCol, manualCorrections); correctionCol.setDefaultVisible(manualCorrections);
tableEl.setColumnModelVisible(correctionCol, manualCorrections);
}
Collections.sort(infos, new AssessmentTestSessionDetailsComparator()); Collections.sort(infos, new AssessmentTestSessionDetailsComparator());
tableModel.setObjects(infos); tableModel.setObjects(infos);
......
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