beatmap and line can not be null in OsuLegacyDecoder.cs

This commit is contained in:
Miterosan 2017-11-07 23:11:04 +01:00
parent 0287d3d7a0
commit 34083baa4d
1 changed files with 5 additions and 0 deletions

View File

@ -264,6 +264,11 @@ private void decodeVariables(ref string line)
private void handleEvents(Beatmap beatmap, string line, ref StoryboardSprite storyboardSprite, ref CommandTimelineGroup timelineGroup)
{
if (line == null)
throw new ArgumentNullException(nameof(line));
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
var depth = 0;
while (line.StartsWith(" ") || line.StartsWith("_"))
{