1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:05:37 +08:00
osu-lazer/osu.Game/Collections
Bartłomiej Dach ef230884a8
Fix collections dropdown crashing during storage migration
Closes https://github.com/ppy/osu/issues/25815.

`CollectionDropdown.collectionsChanged()` was assuming that if it
received `null` changes, then it must mean that the change subscription
is being initialised and the `filters` list will not contain any items.

However, that is not the only circumstance wherein a realm subscription
can fire with `null` changes; that can also happen after the main realm
instance gets recycled via the notification registration flow:

	2f28a92f0a/osu.Game/Database/RealmAccess.cs (L545-L549)

	2f28a92f0a/osu.Game/Database/RealmAccess.cs (L1228-L1251)

Therefore, to fix the crash, just ensure that the list is cleared every
time.
2023-12-18 09:11:00 +01:00
..
BeatmapCollection.cs Add note about hash storage 2022-07-28 13:57:21 +09:00
CollectionDropdown.cs Fix collections dropdown crashing during storage migration 2023-12-18 09:11:00 +01:00
CollectionFilterMenuItem.cs Hook up remaining data flows 2022-07-27 19:35:09 +09:00
CollectionToggleMenuItem.cs Convert realm data propagation to more correctly use Live<T> 2022-07-27 19:35:09 +09:00
DeleteCollectionDialog.cs make ResetConfirmDialog properly utilise its parent's logic 2023-03-05 20:57:26 +01:00
DrawableCollectionList.cs Bring realm library up-to-date 2023-07-06 13:37:43 +09:00
DrawableCollectionListItem.cs Remove drag handles from manage collections dialog for now 2023-10-16 15:51:18 +09:00
ManageCollectionsDialog.cs Add pop-in/pop-out sfx to more overlays 2023-08-17 18:36:37 +09:00