diff --git a/src/main/java/info/fetter/logstashforwarder/util/RandomAccessFile.java b/src/main/java/info/fetter/logstashforwarder/util/RandomAccessFile.java index 6a2afd4..0bdf46a 100644 --- a/src/main/java/info/fetter/logstashforwarder/util/RandomAccessFile.java +++ b/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 } /**