Skip to content

Commit

Permalink
Merge pull request #29 from virtualidentityag/DIAKONIE-335-deletion-r…
Browse files Browse the repository at this point in the history
…outing-more-error-tolerant

fix: delete rooms even if user is already deleted from MariaDB
  • Loading branch information
tkuzynow authored Aug 1, 2024
2 parents 516da4b + fb063f7 commit 30d73b5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ private Collection<? extends DeletionWorkflowError> performUserSessionDeletionFo

private Optional<Session> findSessionInUserSessionList(
String rcGroupId, List<Session> userSessionList) {
return userSessionList.stream().filter(s -> s.getGroupId().equals(rcGroupId)).findFirst();

return userSessionList.stream()
.filter(s -> s.getGroupId() != null && s.getGroupId().equals(rcGroupId))
.findFirst();
}
}

0 comments on commit 30d73b5

Please sign in to comment.