Merge pull request #4533 from Bond-009/nullref3

Fix nullref
pull/4534/head
Claus Vium 4 years ago committed by GitHub
commit 937e2a84e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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