You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2007/06/01 05:47:32 UTC
svn commit: r543381 -
/maven/components/trunk/maven-model/src/main/mdo/maven.mdo
Author: jvanzyl
Date: Thu May 31 20:47:31 2007
New Revision: 543381
URL: http://svn.apache.org/viewvc?view=rev&rev=543381
Log:
MNG-1849 Fix Extension.hashCode() throwing NPE if groupId or artifactId is null
Submitted by: David Hawkins
Modified:
maven/components/trunk/maven-model/src/main/mdo/maven.mdo
Modified: maven/components/trunk/maven-model/src/main/mdo/maven.mdo
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-model/src/main/mdo/maven.mdo?view=diff&rev=543381&r1=543380&r2=543381
==============================================================================
--- maven/components/trunk/maven-model/src/main/mdo/maven.mdo (original)
+++ maven/components/trunk/maven-model/src/main/mdo/maven.mdo Thu May 31 20:47:31 2007
@@ -3888,9 +3888,9 @@
public int hashCode()
{
int result = 17;
- result = 37 * result + getArtifactId().hashCode();
- result = 37 * result + getGroupId().hashCode();
- result = 37 * result + getVersion() != null ? getVersion().hashCode() : 0;
+ result = 37 * result + getArtifactId() != null ? getArtifactId().hashCode() : 0;
+ result = 37 * result + getGroupId() != null ? getGroupId().hashCode() : 0;
+ result = 37 * result + getVersion() != null ? getVersion().hashCode() : 0;
return result;
}
]]>