Skip to content

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

Merged
andrews-unity merged 3 commits into
release/1.0.0from
backport/1.0.0-external-rafek
Nov 24, 2021
Merged

fix: (external) avoid NullReferenceException on ImportReferences call…#1454
andrews-unity merged 3 commits into
release/1.0.0from
backport/1.0.0-external-rafek

Conversation

@andrews-unity

Copy link
Copy Markdown
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