[ https://issues.apache.org/jira/browse/MNG-7780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17720713#comment-17720713 ]
Tamas Cservenak commented on MNG-7780: -------------------------------------- Nay, we need stuff for 3.9.3 as well.. Why would be both null? How common is that both are null? > 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)