1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 03:31:23 +08:00

Fix potential bad realm access to collection name

This commit is contained in:
Dean Herbert
2025-02-11 20:05:48 +09:00
Unverified
parent d8b3c28c2e
commit b9c4e23595
@@ -255,7 +255,7 @@ namespace osu.Game.Collections
private void deleteCollection() => collection.PerformWrite(c => c.Realm!.Remove(c));
}
public IEnumerable<LocalisableString> FilterTerms => [(LocalisableString)Model.Value.Name];
public IEnumerable<LocalisableString> FilterTerms => Model.PerformRead(m => m.IsValid ? new[] { (LocalisableString)m.Name } : []);
private bool matchingFilter = true;