Skip to content

Commit

Permalink
Examination Detail: Bugfix
Browse files Browse the repository at this point in the history
- avoid Null exception when the examination is not loaded in the currently loaded examination solver
- fixes issue #168
  • Loading branch information
tomas-muller committed Apr 19, 2024
1 parent 9350dfd commit 903e6bb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public ExamAssignmentInfo getAssignmentInfo(long examId) {
lock.lock();
try {
Exam exam = getExam(examId);
if (exam == null) return null;
ExamPlacement placement = (exam == null ? null : currentSolution().getAssignment().getValue(exam));
return placement == null ? new ExamAssignmentInfo(exam, null, currentSolution().getAssignment()) : new ExamAssignmentInfo(placement, currentSolution().getAssignment());
} finally {
Expand Down

0 comments on commit 903e6bb

Please sign in to comment.