1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +08:00

Fix OnlineAvailabilityTracker referencing a value in query that could potentially be null

This commit is contained in:
Dean Herbert 2022-01-08 14:03:23 +09:00
parent b619ff1264
commit a3c70ccdfc

View File

@ -86,7 +86,7 @@ namespace osu.Game.Online.Rooms
realmSubscription?.Dispose();
realmSubscription = realmContextFactory.Context
.All<BeatmapSetInfo>()
.Where(s => s.OnlineID == SelectedItem.Value.BeatmapID) // TODO: figure out if we need this hash match in the subscription || s.ID == matchingHash?.ID)
.Where(s => s.OnlineID == item.NewValue.BeatmapID) // TODO: figure out if we need this hash match in the subscription || s.ID == matchingHash?.ID)
.QueryAsyncWithNotifications((items, changes, ___) =>
{
if (changes == null)