-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException: Cannot invoke "String.equals(Object)" because "reqGroup" is null #4526
Comments
I just found out that the missing Although I'll probably can fix the issue in the build of our parent project, for Maven, it still is valid to not have any |
We're using jgitver and that's the one that's throwing away the
That behavior can also be found when generating an effective pom. Only starting from upcoming version 4 of Maven, the I've fixed the missing |
Temporary (?) fixFor those landing here because of the same issue: for the time being, you can delete your /.rewrite-cache folder. Changes made to rewrite-maven which should prevent For more details, check the comments on the PR. |
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
command line
What is the smallest, simplest way to reproduce the problem?
don't have any atm.
We have a few projects that use several plugins that are not use by most projects. Those get the exception.
The issue is in not checking for
null
like in this place wherenull
is checked.I assume there are transitive plugins in plugin management using
org.apache.maven.plugins
plugins and not setting the groupId explicitly.What did you expect to see?
no NullPointerException
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
I could, but the fix seems so small that a regular contributor or team member can also fix it quickly.
The text was updated successfully, but these errors were encountered: