@@ -444,25 +444,25 @@ public void setExamArchivePath(String examArchivePath) {
444
444
/**
445
445
* check if students are allowed to see this exam
446
446
*
447
- * @return true, if students are allowed to see this exam, otherwise false, null if this cannot be determined
447
+ * @return true, if students are allowed to see this exam, otherwise false
448
448
*/
449
449
@ JsonIgnore
450
- public Boolean isVisibleToStudents () throws IllegalStateException {
450
+ public boolean isVisibleToStudents () {
451
451
if (visibleDate == null ) { // no visible date means the exam is configured wrongly and should not be visible!
452
- throw new IllegalStateException ( "The exam " + this . title + " has no visible date set!" ) ;
452
+ return false ;
453
453
}
454
454
return visibleDate .isBefore (ZonedDateTime .now ());
455
455
}
456
456
457
457
/**
458
458
* check if the exam has started
459
459
*
460
- * @return true, if the exam has started, otherwise false, null if this cannot be determined
460
+ * @return true, if the exam has started, otherwise false
461
461
*/
462
462
@ JsonIgnore
463
- public Boolean isStarted () throws IllegalStateException {
463
+ public boolean isStarted () {
464
464
if (startDate == null ) { // no start date means the exam is configured wrongly and we cannot answer the question!
465
- throw new IllegalStateException ( "The exam " + this . title + " has no start date set!" ) ;
465
+ return false ;
466
466
}
467
467
return startDate .isBefore (ZonedDateTime .now ());
468
468
}
@@ -473,7 +473,7 @@ public Boolean isStarted() throws IllegalStateException {
473
473
* @return true, if the results are published, false if not published or not set!
474
474
*/
475
475
@ JsonIgnore
476
- public Boolean resultsPublished () {
476
+ public boolean resultsPublished () {
477
477
if (publishResultsDate == null ) {
478
478
return false ;
479
479
}
0 commit comments