From a3ba25607612818c28d421bfa8eb2f92339d71ac Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 13 三月 2025 20:30:48 +0800
Subject: [PATCH] 优化项目;

---
 HMI.MenuManage/Modal/IconSelector.xaml.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/HMI.MenuManage/Modal/IconSelector.xaml.cs b/HMI.MenuManage/Modal/IconSelector.xaml.cs
index 1411ece..4d18399 100644
--- a/HMI.MenuManage/Modal/IconSelector.xaml.cs
+++ b/HMI.MenuManage/Modal/IconSelector.xaml.cs
@@ -71,7 +71,7 @@
 
         public bool? Open(string currentValue)
         {
-            list.ItemsSource = icons.Select(i => i.Code).ToList();
+            list.ItemsSource = icons?.Select(i => i.Code).ToList();
             Data = currentValue;
             return this.ShowDialog();
         }

--
Gitblit v1.9.1