aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-03-06 17:43:01 -0500
committerPatrick Barron <barronpm@gmail.com>2021-03-06 17:43:01 -0500
commitf638ee6b0918c2ef05ec11cfa43584d3efad68d1 (patch)
treed09920ded59a8773ffa84a056f49e7800240589c /Emby.Drawing/ImageProcessor.cs
parent287dab4655176b09b0cd5b7607bfaff74e48d20d (diff)
Enable nullable for Jellyfin.Data and remove unnecessary attributes
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);
}