Skip to content

Commit

Permalink
Fix: Fleet Server crashes on expired actions search (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksmaus authored Nov 16, 2021
1 parent cedb1c4 commit 9d8666e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/pkg/dl/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ func FindExpiredActionsHitsForIndex(ctx context.Context, index string, bulker bu
if err != nil {
return nil, err
}
return res.Hits, nil
if res != nil {
return res.Hits, nil
}
return nil, nil
}

func findActionsHits(ctx context.Context, bulker bulk.Bulk, tmpl *dsl.Tmpl, index string, params map[string]interface{}, seqNos []int64) (*es.HitsT, error) {
Expand Down

0 comments on commit 9d8666e

Please sign in to comment.