Github user joshelser commented on a diff in the pull request:
@@ -81,7 +81,10 @@ private void doKeyEncryptionOperation(int
Cipher cipher =
- cipher.init(encryptionMode, new SecretKeySpec(keyEncryptionKey,
+ if (keyEncryptionKey.length > 0)
--- End diff --
> The SecretKeySpec constructor would throw IllegalArgumentException
> adding this check probably caused the rest of the code to be executed
resulting in a null exception in another part of the code.
Sounds to me like we would want to throw our own IllegalArgumentException
(or some unchecked exception) in an `else` branch to the conditional you added.
Care to update the pull request with that change?
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket