Skip to content

Commit

Permalink
nil pointer handle (#4613)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamayushm committed Feb 5, 2024
1 parent 30618a2 commit a4968c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/argocdServer/application/Application.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func parseResult(resp *v1alpha1.ApplicationTree, query *application.ResourcesQue
}
}
}
if node.Kind == "Pod" {
if node.Kind == "Pod" && node.NetworkingInfo != nil && node.NetworkingInfo.Labels != nil {
relevantCR[prefix+"-"+node.NetworkingInfo.Labels["controller-revision-hash"]] = true
}
}
Expand Down

0 comments on commit a4968c2

Please sign in to comment.