From bf8bc0f11b051b3761b4c099207e155f9f209413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Wed, 22 Jul 2020 14:17:12 +0200 Subject: [PATCH] Eliminate panic due to nil pointer dereference (#20095) (#20133) (cherry picked from commit 54b1e64d0dc2cd4c26e83cbd60fdc6643de0fccf) --- 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,