Josh Humphries 2005adbe0c reflect/protodesc: fix panic when working with dynamicpb
Improves on CL 642575 with a few additional checks to make
sure a panic doesn't occur even under unexpected conditions.

Fixes golang/protobuf#1671

Change-Id: I25bf1cfdf0b35b381cab603f9e06581b3b630d73
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/642975
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
2025-01-16 08:05:14 -08:00
..
2023-09-05 14:55:28 +00:00