diff --git a/backend/remote-state/azure/client.go b/backend/remote-state/azure/client.go index 6c120e722..29c3121de 100644 --- a/backend/remote-state/azure/client.go +++ b/backend/remote-state/azure/client.go @@ -39,7 +39,7 @@ func (c *RemoteClient) Get() (*remote.Payload, error) { ctx := context.TODO() blob, err := c.giovanniBlobClient.Get(ctx, c.accountName, c.containerName, c.keyName, options) if err != nil { - if blob.Response.StatusCode == 404 { + if blob.Response.Response != nil && blob.Response.StatusCode == 404 { return nil, nil } return nil, err