GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [backport 4.0.x] Fix #12600: handle missing project index in forked executions by gnodet · Pull Request #12917 · apache/maven

Conversation

@gnodet

@gnodet gnodet commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Backport of Handle missing project index in forked executions #12911 (merged to master) to maven-4.0.x
  • Guards against NullPointerException from auto-unboxing when ProjectIndex.getIndices().get() returns null for a project not in the reactor
  • Throws descriptive LifecycleExecutionException instead

Clean cherry-pick — no conflicts.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
2ako ulofiai
@gnodet @claude
Fix #12600: handle missing project index in forked executions (#12911)
38e140b
* fix: handle missing forked project index

Signed-off-by: ulofiai <[email protected]>

* Add test for forked execution project index null guard

Test originally written for PR #12907 (our parallel fix for #12600).
Contributed here since this PR has the better exception constructor
(includes MojoExecution and MavenProject context).

See: #12907

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Signed-off-by: ulofiai <[email protected]>
Co-authored-by: ulofiai <[email protected]>
Co-authored-by: Guillaume Nodet <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Aug 29, 2026
@gnodet gnodet added bug Something isn't working backport-to-4.0.x labels Aug 29, 2026
@gnodet gnodet mentioned this pull request Aug 29, 2026
[backport 3.9.x] Fix #12600: handle missing project index in forked executions #12918
Merged
@gnodet
gnodet merged commit 3591db2 into maven-4.0.x Aug 29, 2026
24 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@gnodet
gnodet deleted the backport/12600-to-4.0.x branch August 29, 2026 19:15
@github-actions github-actions Bot assigned gnodet Aug 29, 2026
@gnodet gnodet mentioned this pull request Aug 29, 2026
Add unit test for #12600 null-guard in forked executions #12923
Merged
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gnodet gnodet

Labels

backport-to-4.0.x bug Something isn't working

Projects

None yet

Milestone

4.0.0-rc-7

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@gnodet
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.