Skip to content

Commit 6920075

Browse files
committed
fix null SSLSocket (ClickHouse#2206)
1 parent 814581b commit 6920075

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcConfiguration.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@ public JdbcConfiguration(String url, Properties info) throws SQLException {
5757
initProperties(urlProperties, info);
5858

5959
// after initializing all properties - set final connection URL
60-
boolean useSSL = Boolean.parseBoolean(info.getProperty(DriverProperties.SECURE_CONNECTION.getKey(), "false"));
61-
String bearerToken = info.getProperty(ClientConfigProperties.BEARERTOKEN_AUTH.getKey(), null);
62-
if (bearerToken != null) {
63-
clientProperties.put(ClientConfigProperties.BEARERTOKEN_AUTH.getKey(), bearerToken);
64-
}
60+
boolean useSSL = Boolean.parseBoolean(clientProperties.getOrDefault(DriverProperties.SECURE_CONNECTION.getKey(), "false"));
6561
this.connectionUrl = createConnectionURL(tmpConnectionUrl, useSSL);
6662
this.isIgnoreUnsupportedRequests= Boolean.parseBoolean(getDriverProperty(DriverProperties.IGNORE_UNSUPPORTED_VALUES.getKey(), "false"));
6763
}

0 commit comments

Comments
 (0)