We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c452f7 commit 13cd8e3Copy full SHA for 13cd8e3
src/google/protobuf/generated_message_reflection.h
@@ -117,7 +117,7 @@ struct ReflectionSchema {
117
uint32_t GetObjectSize() const { return static_cast<uint32_t>(object_size_); }
118
119
bool InRealOneof(const FieldDescriptor* field) const {
120
- return field->real_containing_oneof();
+ return field->real_containing_oneof() != nullptr;
121
}
122
123
// Offset of any field.
0 commit comments