From 605b1300ebbdcf4549b0fe2732731aaef2198d30 Mon Sep 17 00:00:00 2001 From: denglihong2007 <98096191+denglihong2007@users.noreply.github.com> Date: Wed, 14 May 2025 23:27:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=88=90=E9=83=BD=E4=B8=9C=E7=AB=99?= =?UTF-8?q?=E7=AB=8B=E6=9F=B1=E6=A0=B7=E5=BC=8F=E6=9C=89=E6=97=B6=E5=B4=A9?= =?UTF-8?q?=E6=BA=83=20[skip=20cliff]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChengduDong/PillarTicketCheckScreenViewModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRSim.ScreenSimulator/ViewModels/ChengduDong/PillarTicketCheckScreenViewModel.cs b/CRSim.ScreenSimulator/ViewModels/ChengduDong/PillarTicketCheckScreenViewModel.cs index 1a871ff..9f34a49 100644 --- a/CRSim.ScreenSimulator/ViewModels/ChengduDong/PillarTicketCheckScreenViewModel.cs +++ b/CRSim.ScreenSimulator/ViewModels/ChengduDong/PillarTicketCheckScreenViewModel.cs @@ -29,6 +29,10 @@ namespace CRSim.ScreenSimulator.ViewModels.ChengduDong { Application.Current.Dispatcher.Invoke(() => { + if (TrainInfo.Count == 0) + { + return; + } var now = _timeService.GetDateTimeNow(); var departureTime = TrainInfo[0].DepartureTime!.Value;