KEYCLOAK-10953 Avoid NPE when Updating Clients via Admin REST API

This commit is contained in:
Thomas Darimont 2020-02-03 16:17:53 +01:00 committed by Stian Thorgersen
parent f426ed6de6
commit 469bca624b

View file

@ -684,7 +684,7 @@ public class ClientResource {
}
}
if (!rep.getClientId().equals(client.getClientId())) {
if (rep.getClientId() != null && !rep.getClientId().equals(client.getClientId())) {
new ClientManager(new RealmManager(session)).clientIdChanged(client, rep.getClientId());
}