diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-11-21 14:14:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-21 14:14:12 +0100 |
| commit | 937e2a84e81808bdf16e861ade27a02f1449e85b (patch) | |
| tree | 5e7c31e0965293b51d39d16de5cbb3a6c82312c2 /Jellyfin.Api/Controllers/ImageController.cs | |
| parent | 124bd4c2c03874f5b4de241e3d89ac95f6048b9a (diff) | |
| parent | c01042b35560ddc703917d8e588cfb00734dc36f (diff) | |
Merge pull request #4533 from Bond-009/nullref3
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(); } |
