gnodet opened a new pull request, #12861:
URL: https://github.com/apache/maven/pull/12861

   ## Summary
   
   - Guard `projectIndex.getIndices().get(projectId)` and 
`projectIndex.getProjects().get(projectId)` with null checks in 
`MojoExecutor.executeForkedExecutions()`
   - Throw `LifecycleExecutionException` with a clear diagnostic message 
instead of an opaque auto-unbox `NullPointerException`
   - The `projectId` can legitimately be missing from the cached `ProjectIndex` 
under parallel builds (`-T`), stale cached index (extensions modifying session 
projects), or embedded/daemon Maven usage
   
   ## Test plan
   
   - [x] `mvn -pl impl/maven-core -am compile` — BUILD SUCCESS
   - [x] `mvn -pl impl/maven-core test` — 612 tests pass, 0 failures
   - [ ] CI green
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to