Handle null serviceId. (#1034)

This commit is contained in:
Olga Maciaszek-Sharma
2021-10-28 19:43:27 +02:00
committed by GitHub
parent 7cb8c34978
commit 331b523513

View File

@@ -82,7 +82,7 @@ public class LoadBalancerClientFactory extends NamedContextFactory<LoadBalancerC
}
return null;
}
if (!properties.getClients().containsKey(serviceId)) {
if (serviceId == null || !properties.getClients().containsKey(serviceId)) {
// no specific client properties, return default
return properties;
}