From c6e2c6d6982040c8e0a3bd308736d49429d68003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=91=E9=AD=94?= Date: Tue, 11 Feb 2025 18:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SCAN=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8C=85=E5=90=ABnull=E5=BC=95=E5=8F=91=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NewLife.Redis/FullRedis.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewLife.Redis/FullRedis.cs b/NewLife.Redis/FullRedis.cs index f5e6676..5333424 100644 --- a/NewLife.Redis/FullRedis.cs +++ b/NewLife.Redis/FullRedis.cs @@ -723,7 +723,7 @@ public class FullRedis : Redis { foreach (IPacket item in ps) { - if (count-- > 0) yield return item.ToStr(); + if (item != null && count-- > 0) yield return item.ToStr(); } }