beatmap can not be null in BeatmapPanel.cs

This commit is contained in:
Miterosan 2017-11-07 23:13:32 +01:00
parent 289a1346fc
commit dd3874daa8
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ protected override void ApplyState(PanelSelectedState last = PanelSelectedState.
public BeatmapPanel(BeatmapInfo beatmap)
{
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
Beatmap = beatmap;
Height *= 0.60f;