Skip to content

Commit

Permalink
[#10998] Fix NPE from GoogleCloudStorageService (#10999)
Browse files Browse the repository at this point in the history
  • Loading branch information
madanalogy authored Mar 3, 2021
1 parent 3869c59 commit b89e1bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void create(String fileKey, byte[] contentBytes, String contentType) {
public boolean doesFileExist(String fileKey) {
BlobId blobId = BlobId.of(Config.PRODUCTION_GCS_BUCKETNAME, fileKey);
Blob blob = storage.get(blobId);
return blob.exists();
return blob != null && blob.exists();
}

@Override
Expand Down

0 comments on commit b89e1bc

Please sign in to comment.