From 1c2c9700866ccfdddb355fe38d37a13a6db35aae Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Fri, 22 Sep 2023 22:39:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20sanity=5Freport=20?= =?UTF-8?q?=3D=3D=20null=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit link to #6456 --- src/MaaWpfGui/Main/AsstProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaWpfGui/Main/AsstProxy.cs b/src/MaaWpfGui/Main/AsstProxy.cs index 23fc2491f9..53ed4e9bf6 100644 --- a/src/MaaWpfGui/Main/AsstProxy.cs +++ b/src/MaaWpfGui/Main/AsstProxy.cs @@ -621,7 +621,7 @@ namespace MaaWpfGui.Main bool isSanityForecastSucc = true; DateTimeOffset? reportTime = null; TimeSpan timeDiff = TimeSpan.Zero; - if (isSanityForecastSucc &= sanity_report.Count == 2 && ((string)sanity_report[0]).Contains("/")) + if (isSanityForecastSucc &= sanity_report != null && sanity_report.Count == 2 && ((string)sanity_report[0]).Contains("/")) { int[] sanity = ((string)sanity_report[0]).Split('/').Select(i => Convert.ToInt32(i)).ToArray(); reportTime = DateTimeOffset.Parse((string)sanity_report[1]);