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

NPE in NewCUProposal.createChange(NewCUProposal.java:277) #1723

Closed
apupier opened this issue Apr 13, 2021 · 1 comment · Fixed by #1729
Closed

NPE in NewCUProposal.createChange(NewCUProposal.java:277) #1723

apupier opened this issue Apr 13, 2021 · 1 comment · Fixed by #1729
Assignees
Labels

Comments

@apupier
Copy link
Contributor

apupier commented Apr 13, 2021

[Error - 11:14:07 AM] Request textDocument/codeAction failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.NullPointerException
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:645)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NullPointerException
	at org.eclipse.jdt.ls.core.internal.corrections.proposals.NewCUProposal.createChange(NewCUProposal.java:277)
	at org.eclipse.jdt.core.manipulation.ChangeCorrectionProposalCore.getChange(ChangeCorrectionProposalCore.java:150)
	at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionFromProposal(CodeActionHandler.java:228)
	at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:194)
	at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$14(JDTLanguageServer.java:646)
	at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
	... 6 more

using invisible project with java.project.referencedLibraries with org.apache.commons:commons-math3:3.6.1
trying to call completion after new org.apache.commons.math3.fraction.

not sure if related but there is no completion provided after new org.apache.commons.math3.util. even if it provides completion for ContinuedFraction when starting to type new Continued which is in package org.apache.commons.math3.util

tried in VS Code Java

@snjeza
Copy link
Contributor

snjeza commented Apr 15, 2021

#1729 fixes NPE.

not sure if related but there is no completion provided after new org.apache.commons.math3.util. even if it provides completion for ContinuedFraction when starting to type new Continued which is in package org.apache.commons.math3.util

This is an upstream issue. I have created #1729

@fbricon fbricon added this to the End April 2021 milestone Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants