[MRM-370] NPE when trying to proxy a request for a plugin

Patch submitted by Jens Mühlenhoff

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@547590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fabrice Bellingard 2007-06-15 09:33:41 +00:00
parent 68721e8607
commit 743213aaf3
1 changed files with 4 additions and 1 deletions

View File

@ -134,7 +134,10 @@ public class DefaultBidirectionalRepositoryLayout
path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
path.append( VersionUtil.getBaseVersion( reference.getVersion() ) ).append( PATH_SEPARATOR );
if( reference.getVersion() != null ) {
// add the version only if it is present
path.append( VersionUtil.getBaseVersion( reference.getVersion() ) ).append( PATH_SEPARATOR );
}
path.append( MAVEN_METADATA );
return path.toString();