Browse Source

HADOOP-835. Fix a NullPointerException reading record-compressed SequenceFiles. Contributed by Hairong.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@489177 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 years ago
parent
commit
5e3918fd2c
2 changed files with 4 additions and 0 deletions
  1. 3 0
      CHANGES.txt
  2. 1 0
      src/java/org/apache/hadoop/io/SequenceFile.java

+ 3 - 0
CHANGES.txt

@@ -134,6 +134,9 @@ Trunk (unreleased changes)
     standard input and output, respectively.  Standard i/o is
     specified by a file named '-'.  (Wendy Chien via cutting)
 
+38. HADOOP-835.  Fix a NullPointerException reading record-compressed
+    SequenceFiles.  (Hairong Kuang via cutting)
+
 
 Release 0.9.2 - 2006-12-15
 

+ 1 - 0
src/java/org/apache/hadoop/io/SequenceFile.java

@@ -1040,6 +1040,7 @@ public class SequenceFile {
           }
         } else {
           codec = new DefaultCodec();
+          ((Configurable)codec).setConf(conf);
         }
       }