Skip to content

Commit

Permalink
internal/controller: fix panic when getting repoURL in custom config (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
datdao authored Jan 20, 2025
1 parent cafa34a commit 9ccfe44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/atlasschema_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ func (d *managedData) repoURL() *url.URL {
Host: d.Cloud.Repo,
})
// Fallback to desired URL if it's Cloud URL.
case d.Desired.Scheme == dbv1alpha1.SchemaTypeAtlas:
case d.Desired != nil && d.Desired.Scheme == dbv1alpha1.SchemaTypeAtlas:
c := *d.Desired
c.RawQuery = ""
return &c
Expand Down

0 comments on commit 9ccfe44

Please sign in to comment.