-
Notifications
You must be signed in to change notification settings - Fork 93
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
Nullpointer Exception in catalog extension #833
Comments
@deathaxe is there any chance to have a PR for that? If you wish to do that you need to sign your Eclipse CLA |
I don't have JDK installed and don't intend to start developing in Java anytime soon. |
Ok thanks for your answer. @datho7561 could you take care of this issue please. |
Fixes eclipse-lemminx#833 To test, checkout vscode-xml, remove the default value for `xml.catalog` in the package.json, then launch with the patched language server. No NPE should be reported. Signed-off-by: David Thompson <davthomp@redhat.com>
Fixes #833 To test, checkout vscode-xml, remove the default value for `xml.catalog` in the package.json, then launch with the patched language server. No NPE should be reported. Signed-off-by: David Thompson <davthomp@redhat.com>
@angelozerr @datho7561 we need to check other properties are handled safely too |
I think it's was the only settings which thrown problem. |
@fbricon I double checked. After this PR, no NPE will occur when launching the server with no configuration. |
If the client doesn't send the
xml.catalog: []
array setting explicitly upon initialization, the following Nullpointer exception is raised by theArrays.stream()
.The
ContentModelSettings
object should return safe defaults if no catalog is present (empty array instead of null) orvalidateCatalogPaths()
should handle thenull
return value properly.The text was updated successfully, but these errors were encountered: