Skip to content

Commit

Permalink
Merge pull request #1921 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1920-to-release-0.8

[release-0.8] pkg/authorization/apibinding_authorizer: fix nil panic
  • Loading branch information
openshift-merge-robot authored Sep 8, 2022
2 parents b9e0e9c + 68db7da commit 7953202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/authorization/apibinding_authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (a *apiBindingAccessAuthorizer) getAPIBindingReference(attr authorizer.Attr
for _, obj := range objs {
apiBinding := obj.(*apisv1alpha1.APIBinding)
for _, br := range apiBinding.Status.BoundResources {
if apiBinding.Status.BoundAPIExport.Workspace == nil {
if apiBinding.Status.BoundAPIExport == nil || apiBinding.Status.BoundAPIExport.Workspace == nil {
continue
}
if br.Group == attr.GetAPIGroup() && br.Resource == attr.GetResource() {
Expand Down

0 comments on commit 7953202

Please sign in to comment.