Skip to content

Commit

Permalink
修改SCAN数据包含null引发空指针的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xubinhua888 committed Feb 11, 2025
1 parent e4705f8 commit c6e2c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewLife.Redis/FullRedis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ IEnumerable<String> Scan(IRedisNode? node = null)
{
foreach (IPacket item in ps)
{
if (count-- > 0) yield return item.ToStr();
if (item != null && count-- > 0) yield return item.ToStr();
}
}

Expand Down

0 comments on commit c6e2c6d

Please sign in to comment.