Skip to content

Commit

Permalink
Fixed nil pointer exception (MontFerret#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex authored Jul 17, 2021
1 parent 62a0665 commit 1d64cb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/drivers/cdp/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ func LoadHTMLPage(
}

if params.Ignore != nil && len(params.Ignore.Resources) > 0 {
netOpts.Filter.Patterns = params.Ignore.Resources
netOpts.Filter = &net.Filter{
Patterns: params.Ignore.Resources,
}
}

netManager, err := net.New(ctx, logger, client, netOpts)
Expand Down

0 comments on commit 1d64cb5

Please sign in to comment.