Skip to content

Commit 6a3c20c

Browse files
authored
fix potential nil panic in integrations (#2175)
1 parent c9fd490 commit 6a3c20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/atlasproject/integrations.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (r *AtlasProjectReconciler) createIntegrationsInAtlas(ctx *workflow.Context
109109
}
110110

111111
_, resp, err := ctx.Client.Integrations.Create(ctx.Context, projectID, integration.Type, integration)
112-
if resp.StatusCode != http.StatusOK {
112+
if resp != nil && resp.StatusCode != http.StatusOK {
113113
ctx.Log.Debugw("Create request failed", "Status", resp.Status, "Integration", integration)
114114
}
115115
if err != nil {

0 commit comments

Comments
 (0)