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 cleanup #2879

Closed
testforstephen opened this issue Sep 28, 2023 · 0 comments · Fixed by #2870
Closed

NPE in cleanup #2879

testforstephen opened this issue Sep 28, 2023 · 0 comments · Fixed by #2870

Comments

@testforstephen
Copy link
Contributor

Caused by: java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.core.ICompilationUnit.getJavaProject()" because the return value of "org.eclipse.jdt.ls.core.internal.JDTUtils.resolveCompilationUnit(String)" is null
	at org.eclipse.jdt.ls.core.internal.cleanup.CleanUpRegistry.getEditsForAllActiveCleanUps(CleanUpRegistry.java:76)
	at org.eclipse.jdt.ls.core.internal.handlers.SaveActionHandler.willSaveWaitUntil(SaveActionHandler.java:56)
	at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$24(JDTLanguageServer.java:922)
	at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87)
	... 7 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants