From 98d7900fce2002998d91904298cf36202187856f Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 22 Jan 2022 13:19:58 +0100 Subject: [PATCH] don't fail on empty lines --- JournalFile.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/JournalFile.cs b/JournalFile.cs index bfae462..5c40bdf 100644 --- a/JournalFile.cs +++ b/JournalFile.cs @@ -112,6 +112,10 @@ namespace EDJournal { entries.Clear(); foreach(var line in lines) { + // Skip empty lines + if (line.Trim().Length == 0) { + continue; + } Entry entry = Entry.Parse(line); entries.Add(entry); }