beatmap and line can not be null in OsuLegacyDecoder.cs

This commit is contained in:
Miterosan 2017-11-07 23:11:33 +01:00
parent d27dced3af
commit 8dc24a52a7

View File

@ -585,6 +585,11 @@ namespace osu.Game.Beatmaps.Formats
private void handleColours(Beatmap beatmap, string line, ref bool hasCustomColours)
{
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
if (line == null)
throw new ArgumentNullException(nameof(line));
var pair = splitKeyVal(line, ':');
string[] split = pair.Value.Split(',');