mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
fix possible nil pointer dereference in azure sdk
This commit is contained in:
parent
030632e87e
commit
d4db1d1342
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user