commit | 3631e225f84b61597edd1a12f6611b3dc532f72d | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Jun 19 10:21:17 2019 -0700 |
committer | Damien Neil <dneil@google.com> | Wed Jun 19 17:32:35 2019 +0000 |
tree | 18b45152c67e5762d9412dee77ca0bda987dc02c | |
parent | 5857a5ab4fb08298ca701834d6dcec0aa69ee3f0 [diff] |
reflect/protodesc: don't panic on nil Resolver 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>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.