Skip to content

Commit ffc3fd4

Browse files
committed
Improve SonarCloud reliability
1 parent 4621ba8 commit ffc3fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/microsoft/graph/core/requests/GraphClientFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public static OkHttpClient.Builder create(@Nonnull final GraphClientOption graph
140140
*/
141141
@Nonnull
142142
public static OkHttpClient.Builder create(@Nullable final GraphClientOption graphClientOption) {
143-
return KiotaClientFactory.create(createDefaultGraphInterceptors(graphClientOption));
143+
GraphClientOption option = graphClientOption == null ? new GraphClientOption() : graphClientOption;
144+
return KiotaClientFactory.create(createDefaultGraphInterceptors(option));
144145
}
145146

146147
/**

0 commit comments

Comments
 (0)