You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2023/10/20 07:58:01 UTC

[jira] [Updated] (MNG-7745) NPE when .mvn doesn't exist

     [ https://issues.apache.org/jira/browse/MNG-7745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated MNG-7745:
---------------------------------
    Fix Version/s: 4.0.0

> NPE when .mvn doesn't exist
> ---------------------------
>
>                 Key: MNG-7745
>                 URL: https://issues.apache.org/jira/browse/MNG-7745
>             Project: Maven
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 4.0.0-alpha-4, 4.0.0-alpha-5
>         Environment: Any
>            Reporter: Lenny Primak
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 4.0.0-alpha-7, 4.0.0
>
>
> When maven is executed without a .mvn directory, an NPE appears every time.
> This doesn't seem to affect anything but does pollute the logs:
> {code:java}
> Failed to notify spy org.apache.maven.ReactorReader$ReactorReaderSpy: Cannot invoke "java.io.File.toPath()" because the return value of "org.apache.maven.project.MavenProject.getFile()" is null {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)