mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Fix nullref
This commit is contained in:
parent
d2cef78db3
commit
c01042b355
@ -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…
x
Reference in New Issue
Block a user