Avoid potential NPE in HTTP ProxyServiceImpl
@@ -48,8 +48,10 @@ public class ProxyServiceImpl implements ProxyService {
this.bundleContext = bundleContext;
this.proxies = new HashMap<>();
try {
- Configuration configuration = configurationAdmin.getConfiguration(CONFIGURATION_PID);
+ Configuration configuration = configurationAdmin.getConfiguration(CONFIGURATION_PID, null);
+ if (configuration != null) {
update(configuration.getProcessedProperties(null));
+ }
} catch (Exception e) {
LOG.error("Can't load proxies", e);
}
