Skip to content
Snippets Groups Projects
Commit d8360774 authored by Robin Drangmeister's avatar Robin Drangmeister Committed by Daniel Gerhardt
Browse files

Fix NullPointerException in SessionService.getSessionInternal()

This fixes WebSocket communication for course sessions. (dg)

Refs GH-40.
parent 65ed8a49
Branches
Tags
No related merge requests found
Pipeline #7705 passed with stages
in 4 minutes and 52 seconds
......@@ -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();
}
}
......
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