Skip to content

Commit

Permalink
Handle nil obj when processing custom actions (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
dthomson25 committed Jun 6, 2019
1 parent 23ad098 commit b16c485
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/argocd/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,9 @@ func filterResources(command *cobra.Command, resources []*argoappv1.ResourceDiff
filteredObjects := make([]*unstructured.Unstructured, 0)
for i := range liveObjs {
obj := liveObjs[i]
if obj == nil {
continue
}
gvk := obj.GroupVersionKind()
if command.Flags().Changed("group") && group != gvk.Group {
continue
Expand Down

0 comments on commit b16c485

Please sign in to comment.