git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471359
13f79535-47bb-0310-9956-
ffa450edef68
boolean result = true;
- if ( !metadata.getGroupId().equals( artifact.getGroupId() ) )
+ if ( metadata.getGroupId() == null || !metadata.getGroupId().equals( artifact.getGroupId() ) )
{
addFailure( reporter, artifact, groupIdKey );
result = false;
}
if ( !repositoryMetadata.storedInGroupDirectory() )
{
- if ( !metadata.getArtifactId().equals( artifact.getArtifactId() ) )
+ if ( metadata.getGroupId() == null || !metadata.getArtifactId().equals( artifact.getArtifactId() ) )
{
addFailure( reporter, artifact, artifactIdKey );
result = false;