fix: crash on empty lines in *.mer

This commit is contained in:
veroxzik
2022-12-05 20:53:16 -05:00
parent 971285d0aa
commit 8d0b39774e
+3
View File
@@ -80,6 +80,9 @@ namespace BAKKA_Editor
Dictionary<int, int> refByLine = new();
for (int i = index; i < file.Length; i++)
{
if (String.IsNullOrWhiteSpace(file[i]))
continue;
var parsed = file[i].Split(new string[] {" "}, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
NoteBase temp = new();
temp.BeatInfo = new BeatInfo(Convert.ToInt32(parsed[0]), Convert.ToInt32(parsed[1]));