Skip to content

Commit

Permalink
fix: Invalid memory address or nil pointer dereference in processRequ…
Browse files Browse the repository at this point in the history
…estedAppOperation (#7501)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
  • Loading branch information
Alexander Matyushentsev committed Oct 20, 2021
1 parent 872eff2 commit 81e801d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/appcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,9 @@ func (ctrl *ApplicationController) processAppOperationQueueItem() (processNext b
return
}
app = freshApp
}

if app.Operation != nil {
ctrl.processRequestedAppOperation(app)
} else if app.DeletionTimestamp != nil && app.CascadedDeletion() {
_, err = ctrl.finalizeApplicationDeletion(app)
Expand Down

0 comments on commit 81e801d

Please sign in to comment.