gnodet opened a new pull request, #12907: URL: https://github.com/apache/maven/pull/12907
## Summary - Guard against `NullPointerException` caused by auto-unboxing when a project ID is not found in the reactor's `ProjectIndex` during forked execution - Changed `int index` to `Integer index` and added explicit null checks for both the index lookup and the project lookup - Throws a descriptive `LifecycleExecutionException` instead of a cryptic NPE when the project is missing ## Test plan - [x] Existing tests pass (`mvn test` in `impl/maven-core`: 568 tests, 0 failures) - [ ] Verify with a multi-module project that triggers forked executions (e.g., `maven-javadoc-plugin:aggregate`) 🤖 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]
