Commit ae2630c5 authored by shishir suman's avatar shishir suman
Browse files

bug fix for attribute check

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -142,7 +142,7 @@ public class KeycloakUserCreator {
String requestModuleName = null;
JsonNode attributes = body.get("attributes");
if(attributes != null && !attributes.isNull()
&& !attributes.isEmpty() && !attributes.get("module").isNull()) {
&& !attributes.isEmpty() && attributes.has("module")) {
requestModuleName = attributes.get("module").asText();
}
return requestModuleName;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment