fix issue when no repository has been selected

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341662 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-05-22 22:10:28 +00:00
parent 506c3c7ae0
commit 0889d5a17d
1 changed files with 3 additions and 3 deletions

View File

@ -630,7 +630,7 @@ public class DefaultBrowseService
repositoryContentFactory.getManagedRepositoryContent( repoId );
ArchivaArtifact archivaArtifact = new ArchivaArtifact( groupId, artifactId, version, classifier,
StringUtils.isEmpty( type ) ? "jar" : type,
repositoryId );
repoId );
File file = managedRepositoryContent.toFile( archivaArtifact );
if ( file.exists() )
{
@ -684,7 +684,7 @@ public class DefaultBrowseService
ArtifactDownloadInfoBuilder builder =
new ArtifactDownloadInfoBuilder().forArtifactMetadata( artifact ).withManagedRepositoryContent(
repositoryContentFactory.getManagedRepositoryContent( repositoryId ) );
repositoryContentFactory.getManagedRepositoryContent( repoId ) );
artifactDownloadInfos.add( builder.build() );
}
@ -727,7 +727,7 @@ public class DefaultBrowseService
repositoryContentFactory.getManagedRepositoryContent( repoId );
ArchivaArtifact archivaArtifact = new ArchivaArtifact( groupId, artifactId, version, classifier,
StringUtils.isEmpty( type ) ? "jar" : type,
repositoryId );
repoId );
File file = managedRepositoryContent.toFile( archivaArtifact );
if ( !file.exists() )
{