Fix nullref

pull/4533/head
Bond_009 4 years ago
parent d2cef78db3
commit c01042b355
No known key found for this signature in database
GPG Key ID: 63AB4E6262A96A87

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

Loading…
Cancel
Save