msgraph-sdk-java icon indicating copy to clipboard operation
msgraph-sdk-java copied to clipboard

GetRequestConfiguration.queryParameters is wrongly annotated as Nullable

Open kelunik opened this issue 1 year ago • 1 comments

Describe the bug

com.microsoft.graph.users.UsersRequestBuilder.GetRequestConfiguration#queryParameters is annotated as @Nullable, giving an IDE warning. However, it is always initialized to a non-null value.

_graphClient.users().get(config -> {
   config.queryParameters.select = new String[] { ... };
   // ^^^^^^^^^^^^^^^^^^^ Warning here, because it might be null
});

Expected behavior

No IDE warning.

How to reproduce

Install SDK in IntelliJ and past the above code.

SDK Version

6.26.0

Latest version known to work for scenario above?

No response

Known Workarounds

Silence IDE warning for that line.

Debug output

No response

Configuration

No response

Other information

No response

kelunik avatar Jan 29 '25 13:01 kelunik

Hi, I’d like to work on this issue. Can you assign it to me?

Lakkojuhemanth22 avatar Mar 06 '25 17:03 Lakkojuhemanth22