diff --git a/client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java b/client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java index ddf518139..468958d46 100644 --- a/client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java +++ b/client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java @@ -167,7 +167,7 @@ public class NacosNamingService implements NamingService { } }); - if (com.alibaba.nacos.client.utils.StringUtils.isNotBlank(endpointUrl)) { + if (com.alibaba.nacos.client.utils.StringUtils.isBlank(endpointUrl)) { return; }