From d58aae87cba254a28c256df49aecba7ca99bc235 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Fri, 28 Jun 2024 17:04:35 +0200 Subject: [PATCH] fix NPE introduced in a3df7d9 `keycloakAuthorities.get(id)` is null in `org.cryptomator.hub.RemoteUserPuller.syncDeletedAuthorities(RemoteUserPuller.java:65)` --- backend/src/main/java/org/cryptomator/hub/RemoteUserPuller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/cryptomator/hub/RemoteUserPuller.java b/backend/src/main/java/org/cryptomator/hub/RemoteUserPuller.java index 93aa1c86..9f3b9f73 100644 --- a/backend/src/main/java/org/cryptomator/hub/RemoteUserPuller.java +++ b/backend/src/main/java/org/cryptomator/hub/RemoteUserPuller.java @@ -62,7 +62,7 @@ void syncAddedAuthorities(Map keycloakAuthoriti Set syncDeletedAuthorities(Map keycloakAuthorities, Map databaseAuthorities) { var deletedAuthorities = diff(databaseAuthorities.keySet(), keycloakAuthorities.keySet()); for (var id : deletedAuthorities) { - authorityRepo.delete(keycloakAuthorities.get(id)); + authorityRepo.delete(databaseAuthorities.get(id)); } return deletedAuthorities; }