possibly bug fix (#3460)
authorwanghbxxxx <wanghbxxxx@gmail.com>
Wed, 13 Feb 2019 09:43:23 +0000 (17:43 +0800)
committerIan Luo <ian.luo@gmail.com>
Wed, 13 Feb 2019 09:43:23 +0000 (17:43 +0800)
dubbo-common/src/main/java/org/apache/dubbo/common/URL.java

index 31ac91e..7809140 100644 (file)
@@ -349,7 +349,7 @@ class URL implements Serializable {
 \r
     public String getAuthority() {\r
         if (StringUtils.isEmpty(username)\r
-                && StringUtils.isEmpty(parameter)) {\r
+                && StringUtils.isEmpty(password)) {\r
             return null;\r
         }\r
         return (username == null ? "" : username)\r