Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

NPE in BlockBlobClient.exists #575

Open
ohadbitt opened this issue Aug 31, 2022 · 0 comments
Open

NPE in BlockBlobClient.exists #575

ohadbitt opened this issue Aug 31, 2022 · 0 comments

Comments

@ohadbitt
Copy link

ohadbitt commented Aug 31, 2022

Which service(blob, file, queue, table) does this issue concern?

blob

Which version of the SDK was used?

com.azure:azure-storage-blob:12.18.0
(bom 1.2.4)

What problem was encountered?

NPE in BlockBlobClient.exists

Have you found a mitigation/solution?

Kind of - i actually go to this from getBlobOutputStream, so passing overwrite=true fixed the issue for me

Caused by: java.lang.NullPointerException
at com.azure.storage.blob.specialized.BlobClientBase.exists(BlobClientBase.java:405)
at com.azure.storage.blob.specialized.BlockBlobClient.getBlobOutputStream(BlockBlobClient.java:148)
at com.azure.storage.blob.specialized.BlockBlobClient.getBlobOutputStream(BlockBlobClient.java:132)
... 70 more

From debugging
existsWithResponse(null, Context.NONE) -> returns null
Then call to existsWithResponse(null, Context.NONE).getValue() -> is NPE
The blob shouldnt exist at that point btw

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant