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

HelmValuesJsonSchemaProvider should be disabled when virtual file parent is null #8

Closed
fstaudt opened this issue Sep 19, 2022 · 0 comments
Assignees
Labels
bug Something isn't working intellij Intellij plugin
Milestone

Comments

@fstaudt
Copy link
Owner

fstaudt commented Sep 19, 2022

Special case of null parent for virtual file should be handled in HelmValuesJsonSchemaProvider.
In such case, isAvailable should return false.

java.lang.NullPointerException: Cannot invoke "com.intellij.openapi.vfs.VirtualFile.getName()" because the return value of "com.intellij.openapi.vfs.VirtualFile.getParent()" is null
	at io.github.fstaudt.helm.idea.providers.HelmValuesJsonSchemaProvider.isAvailable(HelmValuesJsonSchemaProvider.kt:16)
	at com.jetbrains.jsonSchema.impl.JsonSchemaServiceImpl.isProviderAvailable(JsonSchemaServiceImpl.java:430)
@fstaudt fstaudt transferred this issue from another repository Oct 10, 2022
@fstaudt fstaudt closed this as completed Oct 10, 2022
@fstaudt fstaudt reopened this Oct 10, 2022
@fstaudt fstaudt added the bug Something isn't working label Oct 22, 2022
@fstaudt fstaudt added this to the 0.4.0 milestone Oct 22, 2022
@fstaudt fstaudt self-assigned this Nov 14, 2022
@fstaudt fstaudt added the intellij Intellij plugin label Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working intellij Intellij plugin
Projects
None yet
Development

No branches or pull requests

1 participant