intellij-quarkus: java.lang.NullPointerException: Cannot invoke "java.util.concurrent.CompletableFuture.thenRun(java.lang.Runnable)" because "this.initializeFuture" is null
Using 1.16.0.329 version. Getting the following error while working with the Quarkus project in https://github.com/quarkusio/registry.quarkus.io
Internal error: java.lang.NullPointerException: Cannot invoke "java.util.concurrent.CompletableFuture.thenRun(java.lang.Runnable)" because "this.initializeFuture" is null
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.util.concurrent.CompletableFuture.thenRun(java.lang.Runnable)" because "this.initializeFuture" is null
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.concurrent.CompletableFuture.thenRun(java.lang.Runnable)" because "this.initializeFuture" is null
at com.redhat.devtools.intellij.quarkus.lsp4ij.LanguageServerWrapper.registerCapability(LanguageServerWrapper.java:727)
at com.redhat.devtools.intellij.quarkus.lsp4ij.LanguageClientImpl.lambda$registerCapability$2(LanguageClientImpl.java:85)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
... 6 more
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 16 (7 by maintainers)
Commits related to this issue
- Add a check to the `registerCapability` function to prevent running if `initializeFuture` is null or already done - Fixes #748 — committed to gastaldi/intellij-quarkus by gastaldi a year ago
- Add a check to the `registerCapability` function to prevent running if `initializeFuture` is null or already done - Fixes #748 — committed to gastaldi/intellij-quarkus by gastaldi a year ago
- fix: Prevent potential NPE - Fixes #748 — committed to gastaldi/intellij-quarkus by gastaldi a year ago
- java.lang.NullPointerException: Cannot invoke "java.util.concurrent.CompletableFuture.thenRun(java.lang.Runnable)" because "this.initializeFuture" is null Fixes #748 Signed-off-by: azerr <azerr@redh... — committed to angelozerr/intellij-quarkus by deleted user a year ago
- java.lang.NullPointerException: Cannot invoke "java.util.concurrent.CompletableFuture.thenRun(java.lang.Runnable)" because "this.initializeFuture" is null Fixes #748 Signed-off-by: azerr <azerr@redh... — committed to redhat-developer/intellij-quarkus by deleted user a year ago
I would like to improve the start of language server, after I will finish https://github.com/redhat-developer/intellij-quarkus/pull/819
The fix #765 for this was included in 1.17.1. See 02ba90c4de60803704270c5501be09c0bf8a0bf5 It seems to still happen to @gastaldi with 1.17.1:
Reopening.
I can confirm this, it happened to me.