Compare commits

...
Author SHA1 Message Date
plarsen 18d2aa3b51 B2026-039-Error-sequence-contains-no-elements 2026-08-10 21:28:29 -04:00
+1 -1
View File
@@ -503,7 +503,7 @@ namespace Baseline
string[] fileList = Directory.GetFiles(fi.DirectoryName, patern); string[] fileList = Directory.GetFiles(fi.DirectoryName, patern);
// sort the list of file list // sort the list of file list
Array.Sort((string[])fileList); Array.Sort((string[])fileList);
return fileList.First(); // the PDF file that we what should be top of the list then. return fileList.FirstOrDefault(); // the PDF file that we what should be top of the list then.
} }
/// <summary> /// <summary>