Fix nullref

This commit is contained in:
Bond_009 2020-11-21 12:28:32 +01:00
parent d2cef78db3
commit c01042b355
No known key found for this signature in database
GPG Key ID: 63AB4E6262A96A87

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