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.
     // Close the underlying file object.
     file.close();
     file.close();
-    file = null;  // help the gc
+    //file = null;  // help the gc => commented because of problems with nullpointerexceptions when trying to read after close
   }
   }
 
 
   /**
   /**