mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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…
x
Reference in New Issue
Block a user