mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
line can not be null in OsuLegacyDecoder.cs
This commit is contained in:
parent
a15ab785f2
commit
1e6f1d07d2
@ -246,6 +246,9 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
/// <param name="line">The line which may contains variables.</param>
|
/// <param name="line">The line which may contains variables.</param>
|
||||||
private void decodeVariables(ref string line)
|
private void decodeVariables(ref string line)
|
||||||
{
|
{
|
||||||
|
if (line == null)
|
||||||
|
throw new ArgumentNullException(nameof(line));
|
||||||
|
|
||||||
while (line.IndexOf('$') >= 0)
|
while (line.IndexOf('$') >= 0)
|
||||||
{
|
{
|
||||||
string origLine = line;
|
string origLine = line;
|
||||||
@ -622,6 +625,9 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleVariables(string line)
|
private void handleVariables(string line)
|
||||||
{
|
{
|
||||||
|
if (line == null)
|
||||||
|
throw new ArgumentNullException(nameof(line));
|
||||||
|
|
||||||
var pair = splitKeyVal(line, '=');
|
var pair = splitKeyVal(line, '=');
|
||||||
variables[pair.Key] = pair.Value;
|
variables[pair.Key] = pair.Value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user