1 Index: src/core/org/apache/hadoop/fs/kfs/KFSOutputStream.java
2 ===================================================================
3 --- src/core/org/apache/hadoop/fs/kfs/KFSOutputStream.java (revision 764287)
4 +++ src/core/org/apache/hadoop/fs/kfs/KFSOutputStream.java (working copy)
8 // touch the progress before going into KFS since the call can block
9 - progressReporter.progress();
10 + if (progressReporter != null) {
11 + progressReporter.progress();
13 kfsChannel.write(ByteBuffer.wrap(b, off, len));
17 throw new IOException("File closed");
19 // touch the progress before going into KFS since the call can block
20 - progressReporter.progress();
21 + if (progressReporter != null) {
22 + progressReporter.progress();