mirror of
https://github.com/jellyfin/jellyfin
synced 2024-09-06 08:04:44 +00:00
Fix parameters validation in ImageProcessor.GetCachePath
This commit is contained in:
parent
8102f4eb4e
commit
58924fd1da
|
@ -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)
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue