beatmap and line can not be null in OsuLegacyDecoder.cs

This commit is contained in:
Miterosan
2017-11-07 23:10:30 +01:00
parent 080c3fabba
commit 2f47b336e2

View File

@ -134,6 +134,11 @@ namespace osu.Game.Beatmaps.Formats
private void handleEditor(Beatmap beatmap, string line)
{
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
if (line == null)
throw new ArgumentNullException(nameof(line));
var pair = splitKeyVal(line, ':');
switch (pair.Key)