Skip to content

Commit

Permalink
Fix NPE on Empty OAuth Proxy Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
EmteZogaf committed Aug 12, 2024
1 parent 2598beb commit c3a91f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ IGenericClient client(@Qualifier("store-client") FhirContext fhirContext,
} else if (!isNullOrEmpty(oauthClientId) && !isNullOrEmpty(oauthClientSecret)
&& !isNullOrEmpty(oauthTokenUrl)) {
client.registerInterceptor(new OAuthInterceptor(oauthClientId, oauthClientSecret, oauthTokenUrl,
Optional.of(oauthProxyHost), Optional.of(oauthProxyPort), Optional.of(oauthProxyUsername),
Optional.of(oauthProxyPassword)));
Optional.ofNullable(oauthProxyHost), Optional.ofNullable(oauthProxyPort),
Optional.ofNullable(oauthProxyUsername), Optional.ofNullable(oauthProxyPassword)));
}

if (basicAuthUsername != null || basicAuthPassword != null) {
Expand Down

0 comments on commit c3a91f3

Please sign in to comment.