diff --git a/lib/proto.cc b/lib/proto.cc index 4565c16e..41d93b4c 100644 --- a/lib/proto.cc +++ b/lib/proto.cc @@ -162,7 +162,7 @@ void setProtoFieldFromString(ProtoField& protoField, const std::string& value) setRange((RangeProto*)reflection->MutableMessage(message, field), value); break; } - if (field->real_containing_oneof() && value.empty()) + if (field->containing_oneof() && value.empty()) { reflection->MutableMessage(message, field); break;