|
@@ -6794,7 +6794,7 @@ static void jsondec_field(jsondec *d, upb_msg *msg, const upb_msgdef *m) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (upb_fielddef_containingoneof(f) &&
|
|
|
|
|
|
|
+ if (upb_fielddef_realcontainingoneof(f) &&
|
|
|
upb_msg_whichoneof(msg, upb_fielddef_containingoneof(f))) {
|
|
upb_msg_whichoneof(msg, upb_fielddef_containingoneof(f))) {
|
|
|
jsondec_err(d, "More than one field for this oneof.");
|
|
jsondec_err(d, "More than one field for this oneof.");
|
|
|
}
|
|
}
|