accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mm376 <>
Subject [GitHub] accumulo pull request #163: ACCUMULO-2278 Return value from should...
Date Wed, 12 Oct 2016 18:46:05 GMT
Github user mm376 commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/accumulo/core/security/crypto/
    @@ -81,7 +81,10 @@ private void doKeyEncryptionOperation(int encryptionMode, CryptoModuleParameters
           Cipher cipher = DefaultCryptoModuleUtils.getCipher(params.getAllOptions().get(Property.CRYPTO_DEFAULT_KEY_STRATEGY_CIPHER_SUITE.getKey()));
           try {
    -        cipher.init(encryptionMode, new SecretKeySpec(keyEncryptionKey, params.getAlgorithmName()));
    +    	if (keyEncryptionKey.length > 0)
    --- End diff --
    Code was throwing an exception even before the if check was added, adding this check probably
caused the rest of the code to be executed resulting in a null exception in another part of
the code.

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 or file a JIRA ticket
with INFRA.

View raw message