From 5bf843b3d5f558767547ebb835245acca1efc96f Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Tue, 28 Mar 2023 13:35:51 -0700 Subject: [PATCH] Internal changes PiperOrigin-RevId: 520120295 --- src/google/protobuf/descriptor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/google/protobuf/descriptor.cc b/src/google/protobuf/descriptor.cc index b4f305d931..048397bd77 100644 --- a/src/google/protobuf/descriptor.cc +++ b/src/google/protobuf/descriptor.cc @@ -7200,6 +7200,7 @@ void DescriptorBuilder::ValidateFieldOptions( field->containing_type()->FindExtensionRangeContainingNumber( field->number()); + if (extension_range->options_ == nullptr) { return; }