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

[test] NPE in BarContentAssistProcessor #2453

Open
jukzi opened this issue Oct 28, 2024 · 1 comment
Open

[test] NPE in BarContentAssistProcessor #2453

jukzi opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers test junit test related things

Comments

@jukzi
Copy link
Contributor

jukzi commented Oct 28, 2024

logged when locally running org.eclipse.ui.genericeditor.tests.CompletionTest

java.lang.NullPointerException: Cannot invoke "org.eclipse.jface.text.IDocument.getLength()" because the return value of "org.eclipse.jface.text.ITextViewer.getDocument()" is null
	at org.eclipse.ui.genericeditor.tests.contributions.BarContentAssistProcessor.computeCompletionProposals(BarContentAssistProcessor.java:45)
	at org.eclipse.ui.genericeditor.tests.contributions.LongRunningBarContentAssistProcessor.computeCompletionProposals(LongRunningBarContentAssistProcessor.java:36)
	at org.eclipse.jface.text.contentassist.AsyncCompletionProposalPopup.lambda$10(AsyncCompletionProposalPopup.java:378)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
	at org.eclipse.jface.text.contentassist.AsyncCompletionProposalPopup.lambda$9(AsyncCompletionProposalPopup.java:377)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

@jukzi jukzi added bug Something isn't working good first issue Good for newcomers test junit test related things labels Oct 28, 2024
nettozahler added a commit to nettozahler/eclipse.platform.ui that referenced this issue Nov 3, 2024
@nettozahler
Copy link

This one seems to be trivial to me and so is the bugfix. But maybe I have overlooked sth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers test junit test related things
Projects
None yet
Development

No branches or pull requests

2 participants