소스 검색

Fix nullpointerexception.

didfet 9 년 전
부모
커밋
b469a0e872
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/info/fetter/logstashforwarder/util/RandomAccessFile.java

+ 1 - 1
src/main/java/info/fetter/logstashforwarder/util/RandomAccessFile.java

@@ -344,7 +344,7 @@ public class RandomAccessFile implements DataInput, DataOutput {
 
     // Close the underlying file object.
     file.close();
-    file = null;  // help the gc
+    //file = null;  // help the gc => commented because of problems with nullpointerexceptions when trying to read after close
   }
 
   /**