You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It isn't possible to decode/parse using an old message definition. If a field is missing in the message definition the "parseFieldFromStream" will fail with a fatal error.
"You can add new fields to your message formats without breaking backwards-compatibility; old binaries simply ignore the new field when parsing."
A dirty quick-fix is to check for null fields in the parseFromStream() method, and continue if encountered.
$number = GPBWire::getTagFieldNumber($tag);
$field = $this->desc->getFieldByNumber($number);
// Check whether we retrieved a known field
if ($field == null) {
continue;
}
if (!$this->parseFieldFromStream($tag, $input, $field)) {
return false;
}
The text was updated successfully, but these errors were encountered:
It isn't possible to decode/parse using an old message definition. If a field is missing in the message definition the "parseFieldFromStream" will fail with a fatal error.
"You can add new fields to your message formats without breaking backwards-compatibility; old binaries simply ignore the new field when parsing."
A dirty quick-fix is to check for null fields in the parseFromStream() method, and continue if encountered.
The text was updated successfully, but these errors were encountered: