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 — [maven-4.0.x] MojoExecutor: auto-unbox NPE on missing project index · Issue #12600 · apache/maven

[maven-4.0.x] MojoExecutor: auto-unbox NPE on missing project index #12600

New issue
Copy link
New issue
Copy link
Closed
#12911
Closed
[maven-4.0.x] MojoExecutor: auto-unbox NPE on missing project index#12600
#12911
Copy link
Labels
bugSomething isn't workingmvn4
Milestone
4.0.0-rc-7

Description

@elharo
elharo
opened on Jul 29, 2026
Issue body actions

MojoExecutor: Auto-unbox NPE on missing project index

Found in: maven-4.0.x branch
File: impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java (line 374)
Severity: Medium

Description

The method executeForkedExecutions() auto-unboxes a potentially null Integer:

int index = projectIndex.getIndices().get(projectId);  // auto-unboxing of null

projectIndex.getIndices() returns a Map<String, Integer>. If projectId is not in the map, Map.get() returns null, which auto-unboxes to int, throwing a NullPointerException. This can happen if a forked execution references a project ID that is not in the reactor.

Activity

  1. elharo
    added
    bugSomething isn't working
    on Jul 29, 2026
  2. gnodet
    added
    mvn4
    on Aug 23, 2026
  3. gnodet
    added this to the 4.0.0-rc-7 milestone on Aug 23, 2026
  4. gnodet
    added 2 commits that reference this issue on Aug 29, 2026

    Add test for forked execution project index null guard

    73c51b7

    Fix #12600: handle missing project index in forked executions (#12911)

    327276e
  5. gnodet
    closed this as completedin #12911on Aug 29, 2026
  6. gnodet
    added 5 commits that reference this issue on Aug 29, 2026

    Fix #12600: handle missing project index in forked executions (#12911)

    This issue will close once commit 3591db2 is merged into the 'master' branch.
    3591db2

    Fix #12600: handle missing project index in forked executions (#12911)

    This issue will close once commit 58bc9aa is merged into the 'master' branch.
    58bc9aa

    Fix #12600: handle missing project index in forked executions (#12911) (

    This issue will close once commit fef4727 is merged into the 'master' branch.
    fef4727

    Fix #12600: handle missing project index in forked executions

    This issue will close once commit 897020c is merged into the 'master' branch.
    897020c

    Fix #12600: handle missing project index in forked executions (#12923)

    This issue will close once commit 0acb4e6 is merged into the 'master' branch.
    0acb4e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmvn4

    Type

    No type

    Projects

    No projects

      Milestone

      • 4.0.0-rc-7

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.