diff --git a/PROMS/Baseline/frmBaseline.cs b/PROMS/Baseline/frmBaseline.cs index 8551661e..e1ed4744 100644 --- a/PROMS/Baseline/frmBaseline.cs +++ b/PROMS/Baseline/frmBaseline.cs @@ -503,7 +503,7 @@ namespace Baseline string[] fileList = Directory.GetFiles(fi.DirectoryName, patern); // sort the list of file list 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. } ///