Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix itsNextName not clearing when not found #706

Closed

Conversation

gheckman-gadova
Copy link
Contributor

An issue exists when loading vectors of objects where, if the last nvp of
the previous object does not exist in the json file, the itsNextName
variable within the json serializer is not cleared. This causes the vector
serializer to search for that name next (when it should be searching for a
nameless object.) The json serializer then throws during the named search.

See sample code for demonstration. Before the change, the json serializer throws unexpectedly. After the change it behaves as I would expect.
main.txt

An issue exists when loading vectors of objects where, if the last nvp of
the previous object does not exist in the json file, the itsNextName
variable within the json serializer is not cleared. This causes the vector
serializer to search for that name next (when it should be searching for a
nameless object.) The json serializer then throws during the named search.
@AzothAmmo
Copy link
Contributor

I'll merge this ASAP I've made some small tweaks in #715, basically didn't like seeing the double assignment to nullptr on the happy path

@AzothAmmo
Copy link
Contributor

closing this to track in #715

@AzothAmmo AzothAmmo closed this Sep 20, 2021
@AzothAmmo AzothAmmo removed this from the v1.3.1 milestone Sep 20, 2021
@gheckman-gadova gheckman-gadova deleted the clear-itsNextName branch September 24, 2021 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants