You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/03/09 00:14:21 UTC

[GitHub] [accumulo] ctubbsii commented on a change in pull request #1022: Fix NPE in BCFile. Fixes #1021

ctubbsii commented on a change in pull request #1022: Fix NPE in BCFile. Fixes #1021
URL: https://github.com/apache/accumulo/pull/1022#discussion_r263971219
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/BCFile.java
 ##########
 @@ -634,6 +635,7 @@ public long getRawSize() {
       // backwards compatibility
       if (version.equals(API_VERSION_1)) {
         LOG.trace("Found a version 1 file to read.");
+        decryptionParams = new NoFileEncrypter().getDecryptionParameters();
 
 Review comment:
   Should probably just call "this.decrypter.getDecryptionParameters()" after the next line instead of constructing "NoFileEncrypter" twice.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services