Skip to content

Commit

Permalink
fix(follower-controller): nil pointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
JackZxj committed Aug 8, 2023
1 parent f677922 commit b92b59c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/follower/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ func NewFollowerController(
)

if err := c.informerManager.AddFTCUpdateHandler(func(_, latest *fedcorev1a1.FederatedTypeConfig) {
if latest == nil {
return
}
targetType := latest.Spec.SourceType
targetGK := schema.GroupKind{Group: targetType.Group, Kind: targetType.Kind}

Expand Down

0 comments on commit b92b59c

Please sign in to comment.