Skip to content

lsp.client: Callers of LSPBindings#getBindingsImpl extect result to be non null - #8789

Merged
matthiasblaesing merged 1 commit into
apache:masterfrom
matthiasblaesing:lsp_server_null
Sep 5, 2025
Merged

matthiasblaesing merged 1 commit into
apache:masterfrom
matthiasblaesing:lsp_server_null

Conversation

@matthiasblaesing

Copy link
Copy Markdown
Contributor

Files whose name starts with vcs- and lie inside the java.io.tmpdir will yield null for the call to LSPBindings#getBindingsImpl. This is not expected by callers and breaks the contract of that method that declares it to yield non-null values.

This change turns the null into an empty list.

…e non null

Files whose name starts with vcs- and lie inside the java.io.tmpdir
will yield `null` for the call to LSPBindings#getBindingsImpl. This
is not expected by callers and breaks the contract of that method
that declares it to yield non-null values.

This change turns the null into an empty list.
@matthiasblaesing matthiasblaesing added this to the NB28 milestone Sep 4, 2025
@matthiasblaesing matthiasblaesing added LSP [ci] enable Language Server Protocol tests ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Sep 4, 2025

@lahodaj lahodaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@mbien mbien left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can confirm that git history works again without NPEs.

@matthiasblaesing
matthiasblaesing merged commit 0a352a4 into apache:master Sep 5, 2025
117 of 120 checks passed
@matthiasblaesing

Copy link
Copy Markdown
Contributor Author

@mbien @lahodaj thank you for test/review.

@matthiasblaesing
matthiasblaesing deleted the lsp_server_null branch October 5, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) LSP [ci] enable Language Server Protocol tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants