fixed null start date in moodle course

This commit is contained in:
anhefti 2021-01-14 17:32:24 +01:00
parent 6de13b3635
commit 49d6938e0f

View file

@ -366,7 +366,7 @@ public class MoodleCourseDataAsyncLoader {
private Predicate<CourseDataShort> getCourseFilter() {
final long now = Utils.getSecondsNow();
return course -> {
if (course.start_date < this.fromCutTime) {
if (course.start_date != null && course.start_date < this.fromCutTime) {
return false;
}