Check for empty guid

This commit is contained in:
Niels van Velzen
2022-08-14 12:58:38 +02:00
parent 0f91244239
commit 61afd029df
3 changed files with 4 additions and 4 deletions

View File

@@ -433,7 +433,7 @@ namespace MediaBrowser.Controller.Entities
var user = query.User;
// This must be the last filter
if (query.AdjacentTo.HasValue)
if (query.AdjacentTo.HasValue && !query.AdjacentTo.Value.Equals(default))
{
items = FilterForAdjacency(items.ToList(), query.AdjacentTo.Value);
}