mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:33:21 +08:00
Ensure PlaylistItem beatmap is not null
This commit is contained in:
parent
bca38cc6c8
commit
c6520de749
@ -72,7 +72,7 @@ namespace osu.Game.Online.Rooms
|
||||
/// In many cases, this will *not* contain any usable information apart from OnlineID.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public IBeatmapInfo Beatmap { get; set; } = null!;
|
||||
public IBeatmapInfo Beatmap { get; private set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public IBindable<bool> Valid => valid;
|
||||
@ -81,6 +81,7 @@ namespace osu.Game.Online.Rooms
|
||||
|
||||
[JsonConstructor]
|
||||
private PlaylistItem()
|
||||
: this(new APIBeatmap())
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user