Merge pull request #3406 from mposolda/master

KEYCLOAK-3779 ClientRegistrationPolicies test failing
This commit is contained in:
Marek Posolda 2016-10-21 13:47:15 +02:00 committed by GitHub
commit 3320d34c2b

View file

@ -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();