ソースを参照

Fix nullpointerexception.

didfet 9 年 前
コミット
b469a0e872

+ 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
   }
 
   /**