1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-08 03:13:15 +02:00

Fixed nil pointer exception (#636)

This commit is contained in:
Tim Voronov 2021-07-16 23:45:06 -04:00 committed by GitHub
parent 62a0665a99
commit 1d64cb5da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)