From 54b1e64d0dc2cd4c26e83cbd60fdc6643de0fccf 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 fb5b91c5019..6b3136d65c6 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,