Tobias Gruetzmacher created MNG-7780:
----------------------------------------
Summary: 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: 4.0.0-alpha-5, 3.9.1
Reporter: Tobias Gruetzmacher
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)