Commit d8360774 authored by Robin Drangmeister's avatar Robin Drangmeister Committed by Daniel Gerhardt

Fix NullPointerException in SessionService.getSessionInternal()

This fixes WebSocket communication for course sessions. (dg)

Refs GH-40.
parent 65ed8a49
......@@ -182,7 +182,7 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
if (connectorClient != null && session.isCourseSession()) {
final String courseid = session.getCourseId();
if (!connectorClient.getMembership(userService.getCurrentUser().getUsername(), courseid).isMember()) {
if (!connectorClient.getMembership(user.getUsername(), courseid).isMember()) {
throw new ForbiddenException();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment