NPE on xsd datatype autocompletion in binary mode
See original GitHub issueHi there,
we’re having an issue on several computers running version 0.19.1, both Linux and Windows, while trying to autocomplete an XSD document. Find below the stacktrace.
[Info  - 17:42:04] Mar 22, 2022 05:42:04 org.eclipse.lemminx.XMLLanguageServer initialize() Message: Initializing XML Language server LemMinX Server info:  - Version : 0.19.1  - Native Image  - VM Version : 11.0.9  - Git [Branch 6059965ad91cd67cba1c91f4b82714c57dc64fa5] 6059965 - [maven-release-plugin] prepare release 0.19.1 [Error - 17:42:10] Mar 22, 2022 05:42:10 org.eclipse.lemminx.services.XMLCompletions collectAttributeValueSuggestions() Message: While performing ICompletionParticipant#onAttributeValue for participant 'org.eclipse.lemminx.extensions.xsd.participants.XSDCompletionParticipant'. java.lang.NullPointerException     at org.eclipse.lemminx.extensions.xsd.DataType.getDataTypes(DataType.java:46)     at org.eclipse.lemminx.extensions.xsd.participants.XSDCompletionParticipant.onAttributeValue(XSDCompletionParticipant.java:79)     at org.eclipse.lemminx.services.XMLCompletions.collectAttributeValueSuggestions(XMLCompletions.java:919)     at org.eclipse.lemminx.services.XMLCompletions.doComplete(XMLCompletions.java:153)     at org.eclipse.lemminx.services.XMLLanguageService.doComplete(XMLLanguageService.java:151)     at org.eclipse.lemminx.XMLTextDocumentService.lambda$completion$1(XMLTextDocumentService.java:223)     at java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1236)     at java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1205)     at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)     at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)     at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
Thanks in advance 🙇♂️
Issue Analytics
- State:
 - Created a year ago
 - Comments:5 (4 by maintainers)
 

Top Related StackOverflow Question
@jagui I created the PR https://github.com/eclipse/lemminx/pull/1190 which should fix the problem in binary mode(in Java mode it works).
@jagui I can reproduce your problem and the problem is with binary (with Java it works pretty well).
I need to understand the problem.