Skip to content

Commit d330336

Browse files
committed
fixed tests
1 parent 1a77663 commit d330336

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/ch/ethz/seb/sps/server/datalayer/dao/impl/ExamDAOBatis.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ public Result<Collection<Exam>> getExamsWithin(final FilterMap filterMap, Collec
203203
ExamRecordDynamicSqlSupport.startTime,
204204
SqlBuilder.isLessThanOrEqualToWhenPresent(toTime))
205205
.and( ExamRecordDynamicSqlSupport.id,
206-
SqlBuilder.isInWhenPresent(pre))
206+
SqlBuilder.isInWhenPresent((prePredicated == null)
207+
? Collections.emptyList()
208+
: prePredicated))
207209
.build()
208210
.execute()
209211
.stream()

0 commit comments

Comments
 (0)