mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-30 12:32:36 +00:00
5366f825ad
The fast-path decoder decodes zero-length repeated bytes values as non-nil, zero-length []bytes. Do the same in the reflection decoder. This isn't really a correctness issue, since there's no ambiguity about what a nil entry in a [][]byte means. Still a good idea for consistency, and retains v1 behavior. Change-Id: Icd2cb726d14ff1f2b9f142e65756777a359971f3 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/210257 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>