Brian O'Connor

Protecting against NPE in ComponentConfigManager

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