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 Jul 22, 2020
1 parent cc12b33 commit 54b1e64
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 54b1e64

Please sign in to comment.