protobuf-go/reflect
Damien Neil 3631e225f8 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>
2019-06-19 17:32:35 +00:00
..
protodesc reflect/protodesc: don't panic on nil Resolver 2019-06-19 17:32:35 +00:00
protoreflect reflect/protoreflect: remove KnownFields and UnknownFields interfaces 2019-06-17 19:44:04 +00:00
protoregistry reflect/protoreflect: remove {Enum,Message}.Type methods 2019-06-17 19:43:39 +00:00
prototype reflect/prototype: initial commit 2019-05-22 18:28:03 +00:00