Skip to content

Commit 7a41ee2

Browse files
Fixed nil pointer dereference (#801)
1 parent e68653d commit 7a41ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/atlasproject/teams.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (r *AtlasProjectReconciler) syncAssignedTeams(ctx *workflow.Context, projec
134134

135135
teamRef := getTeamRefFromProjectStatus(project, atlasAssignedTeam.TeamID)
136136
if teamRef == nil {
137-
ctx.Log.Warnf("unable to find team %s status in the project: %s", atlasAssignedTeam.TeamID, err.Error())
137+
ctx.Log.Warnf("unable to find team %s status in the project", atlasAssignedTeam.TeamID)
138138
} else {
139139
if err = r.updateTeamState(ctx, project, teamRef, true); err != nil {
140140
ctx.Log.Warnf("failed to update team %s status with removed project: %s", atlasAssignedTeam.TeamID, err.Error())

0 commit comments

Comments
 (0)