blobstore regression on rackspace

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2736 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2010-01-29 07:48:53 +00:00
parent 24f1836f7a
commit 01ad08dfc2
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ public class ObjectToBlob implements Function<CFObject, Blob> {
Blob blob = blobFactory.create(object2BlobMd.apply(from.getInfo()));
if (from.getContentLength() != null)
blob.setContentLength(from.getContentLength());
blob.setPayload(from.getPayload());
if (from.getPayload() != null)
blob.setPayload(from.getPayload());
blob.setAllHeaders(from.getAllHeaders());
return blob;
}