From 821e67af50f5606dd9ea1b1569256f3bd05c3aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=91=E9=AD=94?= Date: Tue, 11 Feb 2025 17:59:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SCAN=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=9A=84Packet=E6=95=B0=E6=8D=AE=E5=8C=85=E5=90=ABnull?= =?UTF-8?q?=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 f129867..4efa07f 100644 --- a/NewLife.Redis/FullRedis.cs +++ b/NewLife.Redis/FullRedis.cs @@ -692,7 +692,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(); } }