Skip to content

Commit

Permalink
Handle empty schema buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gloomweaver committed Jun 13, 2024
1 parent 8ae1edb commit 818d556
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ internal static class FlightMessageSerializer
{
public static Schema DecodeSchema(ReadOnlyMemory<byte> buffer)
{
if (buffer.IsEmpty) return null;
int bufferPosition = 0;
int schemaMessageLength = BinaryPrimitives.ReadInt32LittleEndian(buffer.Span.Slice(bufferPosition));
bufferPosition += sizeof(int);
Expand Down

0 comments on commit 818d556

Please sign in to comment.