This code fails with a null pointer exception:
service.getBlobProperties(container, blob, metadata,
new GetBlobPropertiesOptions()
.setAccessCondition(AccessCondition.ifModifiedSince(currentLastModifiedDate));
The reason is that the service returns a 304 code (NotModified), which is an exceptional condition, but processing continues regardless. The fix is to add the following code to BlobRestProxy.getBlobPropertiesResultFromResponse:
ThrowIfNotSuccess(response);
This will throw a new ServiceException, which is more actionable by calling code.
This code fails with a null pointer exception:
The reason is that the service returns a 304 code (NotModified), which is an exceptional condition, but processing continues regardless. The fix is to add the following code to
BlobRestProxy.getBlobPropertiesResultFromResponse:This will throw a new ServiceException, which is more actionable by calling code.