This commit is contained in:
John Kvarnefalk 2026-02-20 07:42:33 -08:00 committed by GitHub
commit 790cc0f6d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ func fetchAllExtensions(source DescriptorSource, ext *dynamic.ExtensionRegistry,
if len(md.GetExtensionRanges()) > 0 {
fds, err := source.AllExtensionsForType(msgTypeName)
if err != nil {
return fmt.Errorf("failed to query for extensions of type %s: %v", msgTypeName, err)
fds = []*desc.FieldDescriptor{}
}
for _, fd := range fds {
if err := ext.AddExtension(fd); err != nil {