Skip to content

Commit e62ddb8

Browse files
authored
Merge pull request #6245 from devtron-labs/fix-app-detailv2-rc-26
fix: error handling when artifact is nil
2 parents 8036229 + 04e77af commit e62ddb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/app/AppListingService.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -790,10 +790,7 @@ func (impl AppListingServiceImpl) setIpAccessProvidedData(ctx context.Context, a
790790
}
791791
// get dockerRegistryId starts
792792
artifact, err := impl.ciArtifactRepository.Get(appDetailContainer.CiArtifactId)
793-
if err != nil {
794-
impl.Logger.Errorw("error in fetching ci artifact", "ciArtifactId", appDetailContainer.CiArtifactId, "error", err)
795-
return bean.AppDetailContainer{}, err
796-
}
793+
// artifact can be nil which is a valid case, so we are not returning the error
797794
dockerRegistryId, err := impl.ciPipelineConfigReadService.GetDockerRegistryIdForCiPipeline(ciPipelineId, artifact)
798795
if err != nil {
799796
impl.Logger.Errorw("error in fetching docker registry id", "ciPipelineId", ciPipelineId, "error", err)

0 commit comments

Comments
 (0)