修改备份文件null判断

This commit is contained in:
SIC1016\caipeilun 2023-10-16 09:28:35 +08:00
parent 952261ed51
commit c3866c6d03
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ namespace MECF.Framework.Common.SCCore
var qry = from x in files
orderby x.LastWriteTime
select x;
string newestBackupPath = qry.Last()?.FullName;
string newestBackupPath = qry?.Last().FullName;
if (!string.IsNullOrEmpty(newestBackupPath))
{
var xmlDocument = new XmlDocument();