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

NPE can be see if we open the Synapse Language Server output #649

Open
SanojPunchihewa opened this issue Jan 24, 2025 · 0 comments
Open
Labels

Comments

@SanojPunchihewa
Copy link

SanojPunchihewa commented Jan 24, 2025

Description

The following NPE is shown in Synapse Language Server output in VSCode when we open a project. However everything works fine. If this is not affecting the LS, better to catch and ignore it

Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "org.eclipse.lsp4j.WorkspaceClientCapabilities.getWorkspaceFolders()" is null
	at org.eclipse.lemminx.settings.capabilities.ClientCapabilitiesWrapper.isDidChangeWorkspaceFoldersSupported(ClientCapabilitiesWrapper.java:132)
	at org.eclipse.lemminx.settings.capabilities.XMLCapabilityManager.initializeCapabilities(XMLCapabilityManager.java:197)
	at org.eclipse.lemminx.XMLLanguageServer.initialized(XMLLanguageServer.java:170)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	... 14 more

Steps to Reproduce

Open a new project and check the Synapse Language Server output in VSCode

Version

v1.9.25012313

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant