1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 23:57:22 +08:00

Work around weird null inspection

This commit is contained in:
Dean Herbert 2021-10-18 16:11:55 +09:00
parent 2c5ba1d8e2
commit 88a575462c

View File

@ -147,7 +147,7 @@ namespace osu.Game.Database
var oldItem = oldItems.ElementAt(i);
var newItem = newItems.ElementAt(i);
long? nullableOnlineID = oldItem.OnlineID;
long? nullableOnlineID = oldItem?.OnlineID;
newItem.OnlineID = (int)(nullableOnlineID ?? -1);
}
}