mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
3631e225f8
The change to make protodesc.NewFile take an interface rather than a concrete type means that NewFile(f, nil) now causes a panic. (A nil *protoregistry.Files is valid.) Fix this panic by using a default, empty registry when NewFile's second parameter is nil. Change-Id: I70a1f0759e7ea5b57fba5b6123ee85188f4d560c Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/182979 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> |
||
---|---|---|
.. | ||
protodesc | ||
protoreflect | ||
protoregistry | ||
prototype |