mirror of https://github.com/apache/archiva.git
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:
parent
506c3c7ae0
commit
0889d5a17d
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue