Skip to content

fix: Removing objects that got deleted from list of Dirty NetworkObjects#2185

Merged
jeffreyrainy merged 2 commits intodevelopfrom
fix/dirty-null-objects-MTT-4459
Sep 9, 2022
Merged

fix: Removing objects that got deleted from list of Dirty NetworkObjects#2185
jeffreyrainy merged 2 commits intodevelopfrom
fix/dirty-null-objects-MTT-4459

Conversation

@jeffreyrainy
Copy link
Copy Markdown
Contributor

@jeffreyrainy jeffreyrainy commented Sep 8, 2022

This addresses issues such as #2136 where objects added to the list of dirty NetworkObject get deleted before we process the list.

The issue refuses to show in our test setup, so there sadly isn't any test for it. However, the code is simple enough and there would clearly be a null reference exception without it.

https://jira.unity3d.com/browse/MTT-4459

@jeffreyrainy jeffreyrainy requested a review from a team as a code owner September 8, 2022 22:38
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jeffreyrainy jeffreyrainy merged commit 22df9e8 into develop Sep 9, 2022
@jeffreyrainy jeffreyrainy deleted the fix/dirty-null-objects-MTT-4459 branch September 9, 2022 18:20
LambdaCmplx pushed a commit to LambdaCmplx/com.unity.netcode.gameobjects that referenced this pull request Sep 16, 2022
jakobbbb pushed a commit to GooseGirlGames/com.unity.netcode.gameobjects that referenced this pull request Feb 22, 2023
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.

2 participants