Skip to content

Commit

Permalink
Merge pull request #1109 from bdunne/fix_nil_pointer_error
Browse files Browse the repository at this point in the history
Fix nil pointer dereference error
  • Loading branch information
Fryguy authored May 21, 2024
2 parents e544ccb + 29e806c commit c0275c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (r *ManageIQReconciler) updateManageIQStatus(cr *miqv1alpha1.ManageIQ) erro
object.Spec.Rules != nil {
endpointInfo := &miqv1alpha1.Endpoint{}
if len(object.Spec.TLS[0].SecretName) != 0 {
if objectSecret := FindSecret(cr, r.Client, object.Spec.TLS[0].SecretName); object != nil {
if objectSecret := FindSecret(cr, r.Client, object.Spec.TLS[0].SecretName); objectSecret != nil {
endpointInfo.Name = ingressName
endpointInfo.Type = "UI"
endpointInfo.Scope = "External"
Expand Down

0 comments on commit c0275c9

Please sign in to comment.