Ensure PlaylistItem beatmap is not null

This commit is contained in:
Dan Balasescu 2022-06-30 14:24:49 +09:00
parent bca38cc6c8
commit c6520de749
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@ private int onlineBeatmapId
/// 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 @@ private int onlineBeatmapId
[JsonConstructor]
private PlaylistItem()
: this(new APIBeatmap())
{
}