Skip to content

Commit

Permalink
CAMEL-20707: Implemented isPresent() check for 2 optionals (#13899)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k authored Apr 24, 2024
1 parent 8ed4f05 commit 0fa894b
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 0fa894b

Please sign in to comment.