KEYCLOAK-16862 Avoid NPE on realm update with trace enabled

This commit is contained in:
Cédric Couralet 2021-01-22 07:34:34 +01:00 committed by Marek Posolda
parent eacc95b699
commit 8fcbf465d9

View file

@ -438,6 +438,9 @@ public class RealmAdminResource {
realm.getUserStorageProvidersStream().forEachOrdered(fedProvider ->
usersSyncManager.notifyToRefreshPeriodicSync(session, realm, fedProvider, false));
// This populates the map in DefaultKeycloakContext to be used when treating the event
session.getContext().getUri();
adminEvent.operation(OperationType.UPDATE).representation(StripSecretsUtils.strip(rep)).success();
if (rep.isDuplicateEmailsAllowed() != null && rep.isDuplicateEmailsAllowed() != wasDuplicateEmailsAllowed) {