mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 21:12:55 +08:00
beatmap and line can not be null in OsuLegacyDecoder.cs
This commit is contained in:
parent
0287d3d7a0
commit
34083baa4d
@ -264,6 +264,11 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleEvents(Beatmap beatmap, string line, ref StoryboardSprite storyboardSprite, ref CommandTimelineGroup timelineGroup)
|
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;
|
var depth = 0;
|
||||||
while (line.StartsWith(" ") || line.StartsWith("_"))
|
while (line.StartsWith(" ") || line.StartsWith("_"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user