Skip to content

Commit

Permalink
Eliminate panic due to nil pointer dereference (elastic#20095)
Browse files Browse the repository at this point in the history
(cherry picked from commit 54b1e64)
  • Loading branch information
kvch committed Jul 22, 2020
1 parent 1f6c3ed commit aebe82c
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 aebe82c

Please sign in to comment.