Skip to content

Commit

Permalink
Merge pull request #872 from qmhu/fix-rr-npe
Browse files Browse the repository at this point in the history
fix rr controller npe
  • Loading branch information
qmhu authored Oct 24, 2023
2 parents 34ad4a4 + bb5c1e4 commit e29f4d6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ func (c *RecommendationRuleController) doReconcile(ctx context.Context, recommen
for _, recommendation := range currRecommendations.Items {
exist := false
for _, id := range identitiesArray {
if recommendation.UID == id.Recommendation.UID {
exist = true
break
if id.Recommendation != nil {
if recommendation.UID == id.Recommendation.UID {
exist = true
break
}
}
}

Expand Down

0 comments on commit e29f4d6

Please sign in to comment.