Skip to content

Commit

Permalink
one more check
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Jul 12, 2024
1 parent cb6af0d commit 91e564d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/src/parquet/encryption/internal_file_decryptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ std::shared_ptr<Decryptor> InternalFileDecryptor::GetColumnDecryptor(
std::lock_guard<std::mutex> lock(mutex_);
auto aes_decryptor =
encryption::AesDecryptor::Make(algorithm_, key_len, metadata, &all_decryptors_);
if (ARROW_PREDICT_FALSE(aes_decryptor == nullptr)) {
throw ParquetException("Failed to create AES decryptor");
}
return std::make_shared<Decryptor>(std::move(aes_decryptor), column_key, file_aad_, aad,
pool_);
}
Expand Down

0 comments on commit 91e564d

Please sign in to comment.