-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ParseDict nondestructive for Any (#20111)
Found this bug where if `_ConvertFieldValuePair` fails while parsing an Any from a dictionary value then the `@type` field gets removed from the original object. Adding a simple `try/finally` to ensure we always restore the original object. Closes #20111 COPYBARA_INTEGRATE_REVIEW=#20111 from atulmerchia:fix-destructive-anyparser 58aea19 PiperOrigin-RevId: 721850901
- Loading branch information
1 parent
61ec48f
commit d59047a
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters