Merge pull request #4533 from Bond-009/nullref3

Fix nullref
This commit is contained in:
Claus Vium
2020-11-21 14:14:12 +01:00
committed by GitHub

View File

@@ -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();
}