1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:32:55 +08:00

panels can not be null in BeatmapSetHeader.cs

This commit is contained in:
Miterosan 2017-11-07 23:15:51 +01:00
parent 0f539d24f0
commit 36ce287b88

View File

@ -160,6 +160,9 @@ namespace osu.Game.Beatmaps.Drawables
public void AddDifficultyIcons(IEnumerable<BeatmapPanel> panels) public void AddDifficultyIcons(IEnumerable<BeatmapPanel> panels)
{ {
if (panels == null)
throw new ArgumentNullException(nameof(panels));
foreach (var p in panels) foreach (var p in panels)
difficultyIcons.Add(new DifficultyIcon(p.Beatmap)); difficultyIcons.Add(new DifficultyIcon(p.Beatmap));
} }