Skip to content

Conversation

@xoofx
Copy link
Contributor

@xoofx xoofx commented Jan 21, 2022

Hey,

While developing a small service grpc-curl, I found a small bug in FieldDescriptor.IsPacked that was throwing a NullReferenceException that I had to workaround here:

https://github.com/xoofx/grpc-curl/blob/f7bbe35af79713f278150b96ce51817807a06581/src/DynamicGrpc/DynamicMessageSerializer.cs#L434-L455

So this PR is a small bug fix. Though, I haven't found a test to update about it, not sure if we have any?

Copy link
Contributor

@jskeet jskeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'll let a member of the protobuf team actually approve.

Copy link
Contributor

@elharo elharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know of a test for this, but it would help to add one that covers this bug.

@deannagarcia deannagarcia merged commit c756e61 into protocolbuffers:master Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants