You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of protobuf and what language are you using?
v1.36.3
What did you do?
This is a follow on from #1669 . I am loading a dynamic schema that contains an older version of go_features.proto (the version included at protobuf v1.29.1). This does not include the expected field strip_enum_prefix.
What did you expect to see?
Expect the field to act as not present if the dynamic message doesn't include the field.
Anything else we should know about your project / environment?
I think a nil check is missing for each field descriptor to ensure the field exists before checking if it has been set:
What version of protobuf and what language are you using?
v1.36.3
What did you do?
This is a follow on from #1669 . I am loading a dynamic schema that contains an older version of
go_features.proto
(the version included at protobuf v1.29.1). This does not include the expected fieldstrip_enum_prefix
.What did you expect to see?
Expect the field to act as not present if the dynamic message doesn't include the field.
What did you see instead?
With reflection the field lookup returns a nil field descriptor which panics when calling
Has(fd)
here: https://github.com/protocolbuffers/protobuf-go/blob/0c3cc2f8edbac7858cdff44cbaaaea2cb415cd0f/reflect/protodesc/editions.go#L143Anything else we should know about your project / environment?
I think a nil check is missing for each field descriptor to ensure the field exists before checking if it has been set:
The text was updated successfully, but these errors were encountered: