Skip to content
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

#673: Fixing NPE in UseDepVersionMojo caused by PatternIncludesArtifactFilter expecting a non-null classifier when using wildcards #675

Merged

Conversation

andrzejj0
Copy link
Contributor

Reason for the NPE: the new version of maven-common-artifact-filters, class PatternIncludesArtifactFilters (line 593) expects the "artifactoid" to return a non-null value for every field when the pattern contains a wildcard character.

The "artifactoid" is a functional interface basically returning the desired segment (coordinate in the code) of the artifact. The classifer is not set, hence equal null; this leads to NPE.

…esArtifactFilter expecting a non-null classifier when using wildcards
pom.xml Show resolved Hide resolved
@andrzejj0
Copy link
Contributor Author

@slawekjaranowski please review

@slawekjaranowski slawekjaranowski added this to the next-release milestone Sep 7, 2022
@slawekjaranowski slawekjaranowski linked an issue Sep 7, 2022 that may be closed by this pull request
@slawekjaranowski slawekjaranowski merged commit ff7f209 into mojohaus:master Sep 7, 2022
@andrzejj0 andrzejj0 deleted the issue-673-use-dep-version-npe branch September 7, 2022 20:33
@slawekjaranowski
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullpointerException using use-dep-version 2.12.0
2 participants