Skip to content

fix: SemanticTokens.getData() returns null for instances via default ctor#773

Merged
pisv merged 2 commits into
eclipse-lsp4j:mainfrom
sebthom:patch-1
Nov 26, 2023
Merged

fix: SemanticTokens.getData() returns null for instances via default ctor#773
pisv merged 2 commits into
eclipse-lsp4j:mainfrom
sebthom:patch-1

Conversation

@sebthom

@sebthom sebthom commented Nov 26, 2023

Copy link
Copy Markdown
Contributor

SemanticTokens#getData() to returns null for instances created via default constructor which violates the @NonNull value API contract.

This PR is a root cause fix for eclipse-lsp4e/lsp4e#861

Comment thread org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend Outdated
@pisv pisv added this to the 0.22.0 milestone Nov 26, 2023

@pisv pisv 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.

@sebthom Good catch! Thank you for your contribution.

@pisv pisv merged commit 0645634 into eclipse-lsp4j:main Nov 26, 2023
@sebthom sebthom deleted the patch-1 branch November 26, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants