File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
client-v2/src/main/java/com/clickhouse/client/api/internal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3939import java .net .URISyntaxException ;
4040import java .net .UnknownHostException ;
4141import java .util .Base64 ;
42+ import java .util .EnumSet ;
4243import java .util .Map ;
4344import java .util .concurrent .TimeUnit ;
4445import java .util .function .Function ;
@@ -77,7 +78,9 @@ public CloseableHttpClient createHttpClient() {
7778 proxy = new HttpHost (proxyHost , Integer .parseInt (proxyPort ));
7879 }
7980
80- ProxyType proxyType = ProxyType .valueOf (chConfiguration .get (ClickHouseClientOption .PROXY_TYPE .getKey ()));
81+
82+ String proxyTypeVal = chConfiguration .get (ClickHouseClientOption .PROXY_TYPE .getKey ());
83+ ProxyType proxyType = proxyTypeVal == null ? null : ProxyType .valueOf (proxyTypeVal );
8184 if (proxyType == ProxyType .HTTP ) {
8285 clientBuilder .setProxy (proxy );
8386 if (chConfiguration .containsKey ("proxy_password" ) && chConfiguration .containsKey ("proxy_user" )) {
You can’t perform that action at this time.
0 commit comments