You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one is not from USING OpenRewrite, but from building the maven plugin 5.8.0-SNAPSHOT from current head. One of the tests triggers an NPE in core code.
What is the smallest, simplest way to reproduce the problem?
cd rewrite-maven-plugin
mvn verify
What is the full stack trace of any errors you encountered?
[INFO] Running org.openrewrite.maven.MavenMojoProjectParserTest
[debug] Unable to determine git provenance
java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.toFile()" because "projectDir" is null
at org.openrewrite.marker.GitProvenance.fromGitConfig(GitProvenance.java:187)
at org.openrewrite.marker.GitProvenance.fromProjectDirectory(GitProvenance.java:175)
at org.openrewrite.maven.MavenMojoProjectParser.gitProvenance(MavenMojoProjectParser.java:647)
at org.openrewrite.maven.MavenMojoProjectParser.generateProvenance(MavenMojoProjectParser.java:263)
at org.openrewrite.maven.MavenMojoProjectParserTest.givenNoJavaVersionInformationExistsInMavenThenJavaSpecificationVersionShouldBeUsed(MavenMojoProjectParserTest.java:29)
This one is not from USING OpenRewrite, but from building the maven plugin 5.8.0-SNAPSHOT from current head. One of the tests triggers an NPE in core code.
What is the smallest, simplest way to reproduce the problem?
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
Not this one. I'm not sure what would be reasonable here for the null case.
The text was updated successfully, but these errors were encountered: