allow empty entries in text field

This commit is contained in:
Florian Stinglmayr 2022-02-14 19:06:36 +01:00
parent 029b35c820
commit 6a8dc1d62c

View File

@ -33,6 +33,9 @@ namespace EliteBGS {
List<Entry> entries = new List<Entry>();
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<Entry> entries = new List<Entry>();
foreach (string line in lines.Split('\n')) {
if (string.IsNullOrEmpty(line)) {
continue;
}
Entry entry = Entry.Parse(line);
if (Report.IsRelevant(entry)) {
entries.Add(entry);