mirror of
https://github.com/apache/jclouds.git
synced 2025-03-08 09:49:40 +00:00
Avoid NPE in BaseBlobStore.copyBlob
Resolves copyBlob failures in Atmos.
This commit is contained in:
parent
41bdd9c5a9
commit
cd50ad905d
@ -263,8 +263,9 @@ public abstract class BaseBlobStore implements BlobStore {
|
||||
throw new KeyNotFoundException(fromContainer, fromName, "while copying");
|
||||
}
|
||||
|
||||
String eTag = maybeQuoteETag(blob.getMetadata().getETag());
|
||||
String eTag = blob.getMetadata().getETag();
|
||||
if (eTag != null) {
|
||||
eTag = maybeQuoteETag(eTag);
|
||||
if (options.ifMatch() != null && !options.ifMatch().equals(eTag)) {
|
||||
throw returnResponseException(412);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user