1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:43:22 +08:00

Merge pull request #18949 from smoogipoo/fix-flaky-star-display-test

Ensure PlaylistItem's beatmap is not null
This commit is contained in:
Dean Herbert 2022-06-30 15:15:06 +09:00 committed by GitHub
commit e89f220e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ namespace osu.Game.Online.Rooms
/// In many cases, this will *not* contain any usable information apart from OnlineID. /// In many cases, this will *not* contain any usable information apart from OnlineID.
/// </summary> /// </summary>
[JsonIgnore] [JsonIgnore]
public IBeatmapInfo Beatmap { get; set; } = null!; public IBeatmapInfo Beatmap { get; private set; }
[JsonIgnore] [JsonIgnore]
public IBindable<bool> Valid => valid; public IBindable<bool> Valid => valid;
@ -81,6 +81,7 @@ namespace osu.Game.Online.Rooms
[JsonConstructor] [JsonConstructor]
private PlaylistItem() private PlaylistItem()
: this(new APIBeatmap())
{ {
} }