Skip to content

Commit

Permalink
fix rr controller npe
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed Oct 24, 2023
1 parent 726f91f commit bb5c1e4
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 bb5c1e4

Please sign in to comment.