diff --git a/Tzkt.Api/Utils/Converters/SelectionSingleConverter.cs b/Tzkt.Api/Utils/Converters/SelectionSingleConverter.cs index 33b8f7fc..4315e9b9 100644 --- a/Tzkt.Api/Utils/Converters/SelectionSingleConverter.cs +++ b/Tzkt.Api/Utils/Converters/SelectionSingleConverter.cs @@ -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 {