File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,15 @@ public static async Task<Bom> UpdateJfrogRepoPathForSucessfullyUploadedItems(Bom
28
28
List < ComponentsToArtifactory > uploadedPackages = PackageUploadInformation . GetUploadePackageDetails ( displayPackagesInfo ) ;
29
29
30
30
// Get the details of all the dest repo names from jfrog at once
31
- List < string > destRepoNames = uploadedPackages . Select ( x => x . DestRepoName ) . Distinct ( ) . ToList ( ) ;
31
+ List < string > destRepoNames ;
32
+ if ( uploadedPackages != null && uploadedPackages . Any ( ) )
33
+ {
34
+ destRepoNames = uploadedPackages . Select ( x => x . DestRepoName ) . Distinct ( ) . ToList ( ) ;
35
+ }
36
+ else
37
+ {
38
+ destRepoNames = new List < string > ( ) ;
39
+ }
32
40
List < AqlResult > jfrogPackagesListAql = await GetJfrogRepoInfoForAllTypePackages ( destRepoNames ) ;
33
41
34
42
// Update the repo path
You can’t perform that action at this time.
0 commit comments