Skip to content

GetRequestConfiguration.queryParameters is wrongly annotated as Nullableย #2284

@kelunik

Description

@kelunik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions