mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 00:20:50 +08:00
Fix potential bad realm access to collection name
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user