Brian O'Connor

Protecting against NPE in ComponentConfigManager

Change-Id: Ia0ffe918dad12fef0823fd09e566f0d706a7da8c
......@@ -130,7 +130,8 @@ public class ComponentConfigManager implements ComponentConfigService {
@Override
public Set<ConfigProperty> getProperties(String componentName) {
return ImmutableSet.copyOf(properties.get(componentName).values());
Map<String, ConfigProperty> map = properties.get(componentName);
return map != null ? ImmutableSet.copyOf(map.values()) : null;
}
@Override
......