WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

PhysicalPath of IFileInfo can be null causing exception

Open xperiandri opened this issue 3 years ago • 1 comments

https://github.com/ligershark/WebOptimizer/blob/32708323bd53836b4a43837b0f8b80673c9db736/src/WebOptimizer.Core/Processors/CssFingerprinter.cs#L61

If dir is null on this line Exception occurs that breaks all SCSS compilation

xperiandri avatar Feb 24 '21 23:02 xperiandri

Maybe it must work like this? var info = new FileInfo(dir == null ? pathOnly : Path.Combine(dir, pathOnly.TrimStart('/')));

xperiandri avatar Feb 24 '21 23:02 xperiandri