Skip to content

Commit

Permalink
CAMEL-20707 Implemented isPresent() check for 2 optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k committed Apr 23, 2024
1 parent ecdfbbf commit 56b3502
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private Optional<HttpClientConfigurer> configureProxy(
proxyAuthScheme = Optional.of(HttpHelper.isSecureConnection(uri.get()) ? "https" : "http");
}

if (proxyAuthUsername != null && proxyAuthPassword != null) {
if (proxyAuthUsername.isPresent() && proxyAuthPassword.isPresent()) {
return Optional.of(
new ProxyHttpClientConfigurer(
proxyAuthHost.get(),
Expand Down

0 comments on commit 56b3502

Please sign in to comment.