mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Reorder and check for query user null to avoid null ref issues
This commit is contained in:
parent
de196a7687
commit
2920c52d61
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue