From c22b0f4da872761d3f3657d1f0e4fc69af1280a4 Mon Sep 17 00:00:00 2001 From: girirajsharma Date: Sun, 27 Sep 2015 14:57:16 +0530 Subject: [PATCH] [KEYCLOAK-1880] Admin API Doesn't Detect Null Client --- .../org/keycloak/services/resources/admin/UsersResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java b/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java index 24aa35adaf..e33e50e939 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java @@ -792,7 +792,7 @@ public class UsersResource { } ClientModel clientModel = realm.getClientById(client); - if (client == null) { + if (clientModel == null) { throw new NotFoundException("Client not found"); }