diff options
| author | Oleg Shevchenko <olsh.me@gmail.com> | 2020-09-13 22:38:31 +0300 |
|---|---|---|
| committer | Oleg Shevchenko <olsh.me@gmail.com> | 2020-09-13 22:38:31 +0300 |
| commit | 58924fd1da70cfdbdde835d302dca0812b984187 (patch) | |
| tree | 086763519668a2e4b7fba418e740be54f70f8e5a | |
| parent | 8102f4eb4e2a004fc7dbf62371df042de98c0db7 (diff) | |
Fix parameters validation in ImageProcessor.GetCachePath
| -rw-r--r-- | CONTRIBUTORS.md | 1 | ||||
| -rw-r--r-- | Emby.Drawing/ImageProcessor.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index f0724b412..f1fe65064 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -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) diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs index f585b90ca..ed20292f6 100644 --- a/Emby.Drawing/ImageProcessor.cs +++ b/Emby.Drawing/ImageProcessor.cs @@ -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)); } |
