diff --git a/src/main/java/org/gaul/s3proxy/azureblob/AzureBlobStore.java b/src/main/java/org/gaul/s3proxy/azureblob/AzureBlobStore.java index 69d818b..ea7e4fb 100644 --- a/src/main/java/org/gaul/s3proxy/azureblob/AzureBlobStore.java +++ b/src/main/java/org/gaul/s3proxy/azureblob/AzureBlobStore.java @@ -524,7 +524,8 @@ public final class AzureBlobStore extends BaseBlobStore { public ContainerAccess getContainerAccess(String container) { var client = blobServiceClient.getBlobContainerClient(container); try { - return client.getAccessPolicy().getBlobAccessType().equals( + var blobAccessType = client.getAccessPolicy().getBlobAccessType(); + return blobAccessType != null && blobAccessType.equals( PublicAccessType.CONTAINER) ? ContainerAccess.PUBLIC_READ : ContainerAccess.PRIVATE;