mirror of https://github.com/jellyfin/jellyfin.git
Reorder and check for query user null to avoid null ref issues
This commit is contained in:
parent
de196a7687
commit
2920c52d61
|
@ -2779,8 +2779,10 @@ namespace Emby.Server.Implementations.Library
|
|||
return null;
|
||||
}
|
||||
})
|
||||
.Where(i => i.IsVisible(query.User))
|
||||
.Where(i => i != null)
|
||||
.Where(i => query.User == null ?
|
||||
true :
|
||||
i.IsVisible(query.User))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue