Fix parameters validation in ImageProcessor.GetCachePath

This commit is contained in:
Oleg Shevchenko 2020-09-13 22:38:31 +03:00
parent 8102f4eb4e
commit 58924fd1da
No known key found for this signature in database
GPG key ID: 53B5BC203AE0AEA4
2 changed files with 2 additions and 1 deletions

View file

@ -198,3 +198,4 @@
- [tikuf](https://github.com/tikuf/)
- [Tim Hobbs](https://github.com/timhobbs)
- [SvenVandenbrande](https://github.com/SvenVandenbrande)
- [olsh](https://github.com/olsh)

View file

@ -455,7 +455,7 @@ namespace Emby.Drawing
throw new ArgumentException("Path can't be empty.", nameof(path));
}
if (path.IsEmpty)
if (filename.IsEmpty)
{
throw new ArgumentException("Filename can't be empty.", nameof(filename));
}