diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java index c5d83172..f9f08492 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java @@ -735,7 +735,9 @@ public class ExamDAOImpl implements ExamDAO { record.getLmsSetupId(), record.getExternalId(), BooleanUtils.toBooleanObject(record.getLmsAvailable()), - record.getQuizName(), + StringUtils.isNotBlank(record.getQuizName()) + ? record.getQuizName() + : Constants.SQUARE_BRACE_OPEN + record.getExternalId() + Constants.SQUARE_BRACE_CLOSE, record.getQuizStartTime(), record.getQuizEndTime(), ExamType.valueOf(record.getType()),