From 855890b617c54e71e7fc4df5c38c20812f3ac9a4 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 11 May 2022 09:54:54 +0200 Subject: [PATCH] fixed exception if town-hall button is not available --- .../session/proctoring/MonitoringProctoringService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java index 26f5d832..a6b70723 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java @@ -38,6 +38,7 @@ import ch.ethz.seb.sebserver.gbl.api.JSONMapper; import ch.ethz.seb.sebserver.gbl.model.EntityKey; import ch.ethz.seb.sebserver.gbl.model.exam.ProctoringRoomConnection; import ch.ethz.seb.sebserver.gbl.model.exam.ProctoringServiceSettings; +import ch.ethz.seb.sebserver.gbl.model.exam.ProctoringServiceSettings.ProctoringFeature; import ch.ethz.seb.sebserver.gbl.model.session.ClientConnectionData; import ch.ethz.seb.sebserver.gbl.model.session.RemoteProctoringRoom; import ch.ethz.seb.sebserver.gbl.profile.GuiProfile; @@ -229,7 +230,9 @@ public class MonitoringProctoringService { } }); - updateTownhallButton(proctoringGUIService, pageContext); + if (proctoringSettings.enabledFeatures.contains(ProctoringFeature.TOWN_HALL)) { + updateTownhallButton(proctoringGUIService, pageContext); + } } private void showCollectingRoomPopup(