serilog-web / classic

[Discontinued] Serilog web request logging and enrichment for classic ASP.NET applications
Apache License 2.0
79 stars 32 forks source link

Fixing two null exceptions regarding call to FilterKeywords(keywordBlackList) #70

Closed liviriniu closed 4 years ago

liviriniu commented 4 years ago

This PR treats unhandled exceptions when parameter keywordBlackList of FilterKeywords is null or contains null.

1) Fixes #69 by adding a null-treating guard clause into FilterKeywords(keywordBlackList) + xunit test; 2) Also adds another null-treating guard in the same method for parameter null case + xunit test.