mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 21:12:55 +08:00
set can not be null in BeatmapSetCover.cs
This commit is contained in:
parent
dd3874daa8
commit
d7dee57886
@ -1,6 +1,7 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.Textures;
|
||||
@ -12,6 +13,9 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
private readonly BeatmapSetInfo set;
|
||||
public BeatmapSetCover(BeatmapSetInfo set)
|
||||
{
|
||||
if (set == null)
|
||||
throw new ArgumentNullException(nameof(set));
|
||||
|
||||
this.set = set;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user