Skip to content

Commit e563e12

Browse files
authored
Merge pull request #1717 from microsoftgraph/bugfix/null-allowed-hosts
- fixes a bug where a null collection for allowed hosts would fail client initialization
2 parents 5e729b3 + 3e80baa commit e563e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/graph/serviceclient/GraphServiceClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public GraphServiceClient(@Nonnull OkHttpClient client) {
7373
*/
7474
@SuppressWarnings("LambdaLast")
7575
public GraphServiceClient(@Nonnull TokenCredential tokenCredential, @Nullable String... scopes) {
76-
this(new AzureIdentityAuthenticationProvider(tokenCredential, null, scopes));
76+
this(new AzureIdentityAuthenticationProvider(tokenCredential, new String[] {}, scopes));
7777
}
7878
/**
7979
* Sets the RequestAdapter for the GraphServiceClient.

0 commit comments

Comments
 (0)