Skip to content

Commit af8817e

Browse files
committed
Scheduling Assistant: Build Schedule
- fixed an null error when using as a guest and there is a course with Linked Classes distribution(s)
1 parent c44033d commit af8817e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

JavaSource/org/unitime/timetable/onlinesectioning/model/XDistribution.java

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public boolean hasSection(Long sectionId) {
9898
}
9999

100100
public boolean isViolated(XStudent student, OnlineSectioningServer server) {
101+
if (student == null) return false;
101102
int nrMatch = 0, nrMismatch = 0;
102103
for (Long offeringId: getOfferingIds()) {
103104
XOffering offering = server.getOffering(offeringId);

0 commit comments

Comments
 (0)