Skip to content

Commit

Permalink
null keymetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ggershinsky committed Sep 4, 2023
1 parent a45710f commit 4823e92
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ public EncryptedOutputFile encrypt(OutputFile rawOutput) {

@Override
public InputFile decrypt(EncryptedInputFile encrypted) {
if (encrypted.keyMetadata().buffer() == null) {
throw new SecurityException(
"Unencrypted file " + encrypted.encryptedInputFile().location() + " in encrypted table");
}
Preconditions.checkNotNull(encrypted.keyMetadata().buffer(), "Invalid key metadata: null");

KeyMetadata keyMetadata = KeyMetadata.parse(encrypted.keyMetadata().buffer());

Expand Down

0 comments on commit 4823e92

Please sign in to comment.