Skip to content

Commit

Permalink
feat: 修复空指针异常 TencentBlueKing#2007
Browse files Browse the repository at this point in the history
  • Loading branch information
zacYL authored Apr 11, 2024
1 parent 620e849 commit 17a726d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ open class ProjectRepoMetricsStatJob(
ProjectRepoMetricsStatJobContext.ProjectMetrics(projectId)
}
val data = mongoTemplate.find<Node>(query, nodeCollectionName)
if (data.isEmpty()) return
data.forEach {
runRepoMetrics(metric, row, it)
}
Expand Down

0 comments on commit 17a726d

Please sign in to comment.