Skip to content

Commit

Permalink
Eliminate panic due to nil pointer dereference (#20095) (#20133)
Browse files Browse the repository at this point in the history
(cherry picked from commit 54b1e64)
  • Loading branch information
kvch authored Jul 22, 2020
1 parent de94cf0 commit bf8bc0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions journalbeat/reader/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bf8bc0f

Please sign in to comment.