Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetRequestConfiguration.queryParameters is wrongly annotated as Nullable #2284

Open
kelunik opened this issue Jan 29, 2025 · 0 comments
Open
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@kelunik
Copy link

kelunik commented Jan 29, 2025

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 kelunik added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant