Check for null BlobAccessType in azureblob-sdk

References #606.
pull/719/head
Andrew Gaul 2024-12-19 12:58:11 -08:00
rodzic fef17b0cf8
commit 4b3806db1e
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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;