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()" (or 
assign it to a local variable of that type first, if the field is a super-type) 
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:
[email protected]


With regards,
Apache Git Services

Reply via email to