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

The errors parameter cannot be null from HintsController.setErrors in MavenSelectionHintsTask #4993

Closed
jglick opened this issue Nov 21, 2022 · 0 comments · Fixed by #4994
Closed
Labels
kind:bug Bug report or fix Maven [ci] enable "build tools" tests

Comments

@jglick
Copy link
Contributor

jglick commented Nov 21, 2022

Apache NetBeans version

Apache NetBeans 16 release candidate

What happened

Had a Maven POM open, and on a transitive dep in the project tree selected option to declare as an explicit dep. Got a stack trace

java.lang.NullPointerException: The errors parameter cannot be null
	at org.openide.util.Parameters.notNull(Parameters.java:64)
	at org.netbeans.spi.editor.hints.HintsController.setErrors(HintsController.java:75)
	at org.netbeans.modules.maven.hints.pom.MavenSelectionHintsTask.run(MavenSelectionHintsTask.java:69)
	at org.netbeans.modules.maven.hints.pom.MavenSelectionHintsTask.run(MavenSelectionHintsTask.java:52)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

Tried a few times, getting the same error each time.

How to reproduce

Unknown whether this is reproducible from scratch.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Xubuntu 22.04.1

JDK

17.0.5

Apache NetBeans packaging

Apache NetBeans Snap Package

Anything else

Running 16-rc4.

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

@jglick jglick added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Nov 21, 2022
@mbien mbien added Maven [ci] enable "build tools" tests and removed needs:triage Requires attention from one of the committers labels Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix Maven [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants