aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-03-22 17:05:44 +0000
committerGitHub <noreply@github.com>2021-03-22 17:05:44 +0000
commit5d16d1f66de499022da3eeb484a2cdfe341bed2f (patch)
treeac348fc960f2c849d989a6d2f27a34a73d4f3675 /Emby.Drawing/ImageProcessor.cs
parent7fa525c83b7573e61124fa1c64a3b27569e66b6d (diff)
parent0853d1265c99a2e8614aa0c7a584dff541484e19 (diff)
Merge branch 'master' into RemoteAccessFix
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
-rw-r--r--Emby.Drawing/ImageProcessor.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index 8a2301d2d..aa8a3d212 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/Emby.Drawing/ImageProcessor.cs
@@ -352,8 +352,13 @@ namespace Emby.Drawing
}
/// <inheritdoc />
- public string GetImageCacheTag(User user)
+ public string? GetImageCacheTag(User user)
{
+ if (user.ProfileImage == null)
+ {
+ return null;
+ }
+
return (user.ProfileImage.Path + user.ProfileImage.LastModified.Ticks).GetMD5()
.ToString("N", CultureInfo.InvariantCulture);
}