Commit f85257b9 authored by henrik.prangel's avatar henrik.prangel
Browse files

JUT-106 Fix session disconnect event throwing errors

parent 978d6a40
......@@ -141,7 +141,7 @@ public class ChatService {
}
public ChatDTO getChatBySessionId(String sessionId) {
return findOneBySession(sessionId).orElseThrow(NoSuchElementException::new);
return findOneBySession(sessionId).orElse(null);
}
public void updateChatWithMessageInformation(ChatDTO chatDTO, MessageDTO messageDTO, String referer) {
......
Supports Markdown
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