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
  • Loading branch information
kvch authored and melchiormoulin committed Oct 14, 2020
1 parent 1f5940a commit 0973bbd
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 0973bbd

Please sign in to comment.