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

Null instance handling in deserialization #848

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

Jacky720
Copy link
Contributor

Hopefully resolves all these "object reference not set to an instance of an object" issues in saving. Might crash in loading if there are two consecutive null objects (if that's even possible) and will not re-write the objects 1:1.

Also, change a couple of if-else chains to switches.

@Miepee
Copy link
Contributor

Miepee commented Apr 20, 2022

@JohnnyonFlame can you check if this fixes #467 ?

@JohnnyonFlame
Copy link
Contributor

I can, but I have no idea how to guarantee the correctness of this solution.

@Grossley Grossley merged commit eb9ef62 into UnderminersTeam:master Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants