Skip to content

Commit

Permalink
v0.5.1 fix: XPening null bug #92
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Apr 22, 2022
1 parent c182d4c commit 89ab34a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/FreeRedis/FreeRedis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<AssemblyName>FreeRedis</AssemblyName>
<PackageId>FreeRedis</PackageId>
<RootNamespace>FreeRedis</RootNamespace>
<Version>0.5.0</Version>
<Version>0.5.1</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/2881099/FreeRedis</PackageProjectUrl>
<Description>FreeRedis is .NET redis client, supports cluster, sentinel, master-slave, pipeline, transaction and connection pool.</Description>
Expand Down
1 change: 1 addition & 0 deletions src/FreeRedis/RedisClient/Streams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public static StreamsXPendingResult ThrowOrValueToXPending(this RedisResult rt)
if (a?.Any() != true) return null;
var ret = new StreamsXPendingResult { count = a[0].ConvertTo<long>(), minId = a[1].ConvertTo<string>(), maxId = a[2].ConvertTo<string>() };
var objs1 = a[3] as object[];
if (objs1 == null) objs1 = new object[0];
ret.consumers = new StreamsXPendingResult.Consumer[objs1.Length];
for (var z = 0; z < objs1.Length; z++)
{
Expand Down

0 comments on commit 89ab34a

Please sign in to comment.