[
https://issues.apache.org/jira/browse/MNG-7780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17720699#comment-17720699
]
Michael Osipov commented on MNG-7780:
-------------------------------------
Does not happen in 3.8.x?
[~cstamas], worth fixing
> DefaultArtifact.equals throws NullPointerException if o.version is null
> -----------------------------------------------------------------------
>
> Key: MNG-7780
> URL: https://issues.apache.org/jira/browse/MNG-7780
> Project: Maven
> Issue Type: Bug
> Affects Versions: 3.9.1, 4.0.0-alpha-5
> Reporter: Tobias Gruetzmacher
> Priority: Major
>
> DefaultArtifact.validateIdentity() only throws if BOTH version and
> versionRange are null, so it's possible to create an instance of
> DefaultArtifact where version == null. If such an instance ever ends up in
> DefaultArtifact.equals(o), the check {{a.getVersion().equals(version)}} will
> throw a NullPointerException.
> (This was observed while debugging an issue in versions-maven-plugin)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)