You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/08/13 09:54:50 UTC

[dubbo] branch 3.0 updated: compact with some registry without address (#8496)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 92a7bfe  compact with some registry without address (#8496)
92a7bfe is described below

commit 92a7bfeac4e32812aa73df774a3111937fb97965
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Fri Aug 13 17:54:38 2021 +0800

    compact with some registry without address (#8496)
---
 dubbo-common/src/main/java/org/apache/dubbo/config/RegistryConfig.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dubbo-common/src/main/java/org/apache/dubbo/config/RegistryConfig.java b/dubbo-common/src/main/java/org/apache/dubbo/config/RegistryConfig.java
index 7d3808b..9ed3df1 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/config/RegistryConfig.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/config/RegistryConfig.java
@@ -527,6 +527,6 @@ public class RegistryConfig extends AbstractConfig {
     @Parameter(excluded = true, attribute = false)
     public boolean isValid() {
         // empty protocol will default to 'dubbo'
-        return !StringUtils.isEmpty(address);
+        return !StringUtils.isEmpty(address) || !StringUtils.isEmpty(protocol);
     }
 }