From 0973bbd7336593d9638bc185a41ae3cd5f77b32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Wed, 22 Jul 2020 13:44:35 +0200 Subject: [PATCH] Eliminate panic due to nil pointer dereference (#20095) --- journalbeat/reader/journal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/journalbeat/reader/journal.go b/journalbeat/reader/journal.go index fb5b91c5019a..6b3136d65c66 100644 --- a/journalbeat/reader/journal.go +++ b/journalbeat/reader/journal.go @@ -76,6 +76,7 @@ func newReader(path string, c Config, done chan struct{}, state checkpoint.Journ instance.AddJournalToMonitor(c.Path, journal) return &Reader{ + r: r, journal: journal, config: c, done: done,