Fix potential song select nullref

This commit is contained in:
smoogipoo 2020-05-07 11:37:04 +09:00
parent c8134162b5
commit 5186da8412

View File

@ -61,7 +61,7 @@ namespace osu.Game.Screens.Select.Carousel
terms.Add(Beatmap.Version);
foreach (var criteriaTerm in criteria.SearchTerms)
match &= terms.Any(term => term.IndexOf(criteriaTerm, StringComparison.InvariantCultureIgnoreCase) >= 0);
match &= terms.Any(term => term?.IndexOf(criteriaTerm, StringComparison.InvariantCultureIgnoreCase) >= 0);
}
Filtered.Value = !match;