Merge pull request #3406 from mposolda/master
KEYCLOAK-3779 ClientRegistrationPolicies test failing
This commit is contained in:
commit
3320d34c2b
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ public class StripSecretsUtils {
|
||||||
|
|
||||||
public static ComponentRepresentation strip(KeycloakSession session, ComponentRepresentation rep) {
|
public static ComponentRepresentation strip(KeycloakSession session, ComponentRepresentation rep) {
|
||||||
Map<String, ProviderConfigProperty> configProperties = ComponentUtil.getComponentConfigProperties(session, rep);
|
Map<String, ProviderConfigProperty> configProperties = ComponentUtil.getComponentConfigProperties(session, rep);
|
||||||
|
if (rep.getConfig() == null) {
|
||||||
|
return rep;
|
||||||
|
}
|
||||||
|
|
||||||
Iterator<Map.Entry<String, List<String>>> itr = rep.getConfig().entrySet().iterator();
|
Iterator<Map.Entry<String, List<String>>> itr = rep.getConfig().entrySet().iterator();
|
||||||
while (itr.hasNext()) {
|
while (itr.hasNext()) {
|
||||||
Map.Entry<String, List<String>> next = itr.next();
|
Map.Entry<String, List<String>> next = itr.next();
|
||||||
|
|
Loading…
Reference in a new issue