NullPointerException when language-tool is uninitialized #1
Labels
1-bug 🐛
Issue type: Bug report (something isn't working as expected)
2-confirmed
Issue status: Confirmed, reproducible bug in LTeX
3-fixed
Issue resolution: Issue has been fixed on the develop branch
8000
div>
When language-tool is not initialized (for example when a configured language can not be found) the following exception will occur:
This is caused by validateDocument returning a Pair with null values.
https://github.com/valentjn/languagetool-languageserver/blob/6cbd92e7d76db2bff589ff57ae3903d36e6e5012/src/main/java/LanguageToolLanguageServer.java#L411
The codeAction method then tries to use this down the line without a check:
https://github.com/valentjn/languagetool-languageserver/blob/6cbd92e7d76db2bff589ff57ae3903d36e6e5012/src/main/java/LanguageToolLanguageServer.java#L264
The text was updated successfully, but these errors were encountered: