SEBSERV-76 fixed
This commit is contained in:
parent
47a0f37d9d
commit
0b1ed4c46c
1 changed files with 4 additions and 0 deletions
|
@ -175,6 +175,10 @@ public class ExamList implements TemplateComposer {
|
|||
private PageAction modifyExam(final PageAction action, final EntityTable<Exam> table) {
|
||||
final Exam exam = table.getSelectedROWData();
|
||||
|
||||
if (exam == null) {
|
||||
throw new PageMessageException(EMPTY_SELECTION_TEXT_KEY);
|
||||
}
|
||||
|
||||
if (exam.startTime != null) {
|
||||
final DateTime now = DateTime.now(DateTimeZone.UTC);
|
||||
if (exam.startTime.isBefore(now)) {
|
||||
|
|
Loading…
Reference in a new issue