From b469a0e87242c8bf4ba9b203995b73564bbf7f38 Mon Sep 17 00:00:00 2001 From: didfet Date: Tue, 23 Aug 2016 17:47:51 +0200 Subject: [PATCH] Fix nullpointerexception. --- .../info/fetter/logstashforwarder/util/RandomAccessFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } /**