diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-11-21 12:28:32 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-11-21 12:28:32 +0100 |
| commit | c01042b35560ddc703917d8e588cfb00734dc36f (patch) | |
| tree | f5d81645acddf77f39c19e1fbd2cb5b9d5826ea4 /Jellyfin.Api/Controllers/ImageController.cs | |
| parent | d2cef78db3c6f5c1063f8205ed5309f5243be66b (diff) | |
Fix nullref
Diffstat (limited to 'Jellyfin.Api/Controllers/ImageController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ImageController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.cs index 76e53b9a5..366f70163 100644 --- a/Jellyfin.Api/Controllers/ImageController.cs +++ b/Jellyfin.Api/Controllers/ImageController.cs @@ -928,7 +928,7 @@ namespace Jellyfin.Api.Controllers [FromRoute] int? imageIndex = null) { var user = _userManager.GetUserById(userId); - if (user == null) + if (user?.ProfileImage == null) { return NotFound(); } |
