diff --git a/src/main/java/de/thm/arsnova/services/SessionService.java b/src/main/java/de/thm/arsnova/services/SessionService.java index b4737211843dd94b1c4d646279333e03e82d3f0c..aad22cbd676c935516612759fa3a512f95c33aa7 100644 --- a/src/main/java/de/thm/arsnova/services/SessionService.java +++ b/src/main/java/de/thm/arsnova/services/SessionService.java @@ -31,7 +31,10 @@ public class SessionService implements ISessionService { if (results.getJSONArray("rows").optJSONObject(0) == null) return null; Session result = (Session)JSONObject.toBean(results.getJSONArray("rows").optJSONObject(0).optJSONObject("value"), Session.class); - return result; + + if (result.isActive()) return result; + + return null; } }