mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 13:33:03 +08:00
Fix potential song select nullref
This commit is contained in:
parent
c8134162b5
commit
5186da8412
@ -61,7 +61,7 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
terms.Add(Beatmap.Version);
|
terms.Add(Beatmap.Version);
|
||||||
|
|
||||||
foreach (var criteriaTerm in criteria.SearchTerms)
|
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;
|
Filtered.Value = !match;
|
||||||
|
Loading…
Reference in New Issue
Block a user