NPE in MavenProject (3.9.10) in parallel build

Laird Nelson <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <CAHNdxukCDqttwzUfgN8jt6rSq8gWvAXrhjWu=S3EuBQ=K-SGSg@mail.gmail.com>
Curious if people have seen this NPE before:
https://github.com/helidon-io/helidon/actions/runs/15985949089/job/45090504083?pr=10313#step:3:9789

We're running with -T8 (
https://github.com/helidon-io/helidon/actions/runs/15985949089/job/45090504083?pr=10313#step:3:166).
(Github Actions.)

Relevant snippet:

Caused by: java.lang.NullPointerException: Cannot invoke
"java.util.Set.add(Object)" because "this.artifacts" is null
at org.apache.maven.project.MavenProject.getArtifacts
(MavenProject.java:683)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.getPathElements
(AbstractJavadocMojo.java:2491)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.addJavadocOptions
(AbstractJavadocMojo.java:4550)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport
(AbstractJavadocMojo.java:1968)

The fact that it was javadocs I think may be immaterial. It is certainly
the case that MavenProject is not thread safe. Maybe that's by design?
Should I file a bug?

Best,
Laird
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.