Skip to content

fix: (external) avoid NullReferenceException on ImportReferences call… #1454

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

Merged
merged 3 commits into from
Nov 24, 2021

Conversation

andrews-unity
Copy link
Contributor

Original PR: #1434

…#1434)

* fix: NullReferenceException during ImportReferences in
NetworkBehaviourILPP (#1378)

In some cases, for example when assembly is System.Colletions.Immutable, null value is passed to .Add() method causing NullReferenceException
during the build. Simply guarding against it solves the issue.

Co-authored with @JadenH
Co-authored-by: rafek <rafal.legiedz@gmail.com>
@andrews-unity andrews-unity merged commit 82d98a5 into release/1.0.0 Nov 24, 2021
@andrews-unity andrews-unity deleted the backport/1.0.0-external-rafek branch November 24, 2021 10:55
mollstam pushed a commit to Keepsake-Games/com.unity.netcode.gameobjects that referenced this pull request Feb 13, 2023
…Unity-Technologies#1434) (Unity-Technologies#1454)

* fix: NullReferenceException during ImportReferences in
NetworkBehaviourILPP (Unity-Technologies#1378)

In some cases, for example when assembly is System.Colletions.Immutable, null value is passed to .Add() method causing NullReferenceException
during the build. Simply guarding against it solves the issue.

Co-authored with @JadenH
Co-authored-by: rafek <rafal.legiedz@gmail.com>
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