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