diff --git a/LoadEntriesWindow.xaml.cs b/LoadEntriesWindow.xaml.cs index fc3e2cf..8681847 100644 --- a/LoadEntriesWindow.xaml.cs +++ b/LoadEntriesWindow.xaml.cs @@ -33,6 +33,9 @@ namespace EliteBGS { List entries = new List(); foreach (string line in lines.Split('\n')) { + if (string.IsNullOrEmpty(line)) { + continue; + } Entry entry = Entry.Parse(line); entries.Add(entry); } @@ -86,6 +89,9 @@ namespace EliteBGS { List entries = new List(); foreach (string line in lines.Split('\n')) { + if (string.IsNullOrEmpty(line)) { + continue; + } Entry entry = Entry.Parse(line); if (Report.IsRelevant(entry)) { entries.Add(entry);