commit | a2c88b2489af97a4d91044c89124c03c28fd7872 | [log] [tgz] |
---|---|---|
author | Jon Perritt <jrperritt@gmail.com> | Mon May 18 11:23:30 2015 -0600 |
committer | Jon Perritt <jrperritt@gmail.com> | Mon May 18 11:23:30 2015 -0600 |
tree | 1321f1e903cc2babee7f578faf2c28a2a4d5a09a | |
parent | 9ad4137a6b3e786b9c1e161b8d354b44482ab6d7 [diff] [blame] |
fix object storage nil pointer deref error
diff --git a/rackspace/objectstorage/v1/bulk/requests.go b/rackspace/objectstorage/v1/bulk/requests.go index 898b73b..0aeec15 100644 --- a/rackspace/objectstorage/v1/bulk/requests.go +++ b/rackspace/objectstorage/v1/bulk/requests.go
@@ -43,7 +43,9 @@ JSONBody: reqBody, JSONResponse: &res.Body, }) - res.Header = resp.Header + if resp != nil { + res.Header = resp.Header + } res.Err = err return res }