We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a53a5 commit 1becae5Copy full SHA for 1becae5
hugegraph-pd/hg-pd-client/src/main/java/org/apache/hugegraph/pd/client/PDConfig.java
@@ -101,6 +101,10 @@ public String toString() {
101
}
102
103
public PDConfig setAuthority(String userName, String pwd) {
104
+ // If userName is null or empty, keep default values for test environment
105
+ if (StringUtils.isEmpty(userName)) {
106
+ return this;
107
+ }
108
this.userName = userName;
109
String auth = userName + ':' + pwd;
110
this.authority = Base64.getEncoder().encodeToString(auth.getBytes(UTF_8));
0 commit comments