[ 
https://issues.apache.org/jira/browse/MNG-7780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17725087#comment-17725087
 ] 

ASF GitHub Bot commented on MNG-7780:
-------------------------------------

gnodet merged PR #1108:
URL: https://github.com/apache/maven/pull/1108




> 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)

Reply via email to