Skip to content

Commit

Permalink
Fix SelectionSingleConverter on empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Jul 14, 2024
1 parent a5a2199 commit b14c3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tzkt.Api/Utils/Converters/SelectionSingleConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public override void Write(Utf8JsonWriter writer, SelectionSingleResponse value,
writer.WriteStartObject();
for (int j = 0; j < value.Cols.Length; j++)
{
if (value.Vals[j] == null)
if (value.Vals?[j] == null)
writer.WriteNull(value.Cols[j]);
else
{
Expand Down

0 comments on commit b14c3a0

Please sign in to comment.