Skip to content

fix: Exception thrown when player prefab is null#3965

Merged
NoelStephensUnity merged 3 commits intodevelop-2.0.0from
fix/exception-when-playerprefab-is-null
May 1, 2026
Merged

fix: Exception thrown when player prefab is null#3965
NoelStephensUnity merged 3 commits intodevelop-2.0.0from
fix/exception-when-playerprefab-is-null

Conversation

@NoelStephensUnity
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity commented May 1, 2026

Purpose of this PR

Fixes the issue where if the player prefab is null it will throw an exception.

Jira ticket

MTT-14953
fix: #3964

Changelog

  • Fixed: Issue where if the NetworkManager player prefab is not assigned an exception is thrown upon starting a host and/or when a client joins.

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests (wip)

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Backports

No backport is needed.

Fixes the issue where if the player prefab is null it will throw an exception.
Adding changelog entry.
Adding test to validate this PR.
@NoelStephensUnity NoelStephensUnity merged commit c26b42e into develop-2.0.0 May 1, 2026
23 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/exception-when-playerprefab-is-null branch May 1, 2026 19:39
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.

NullReferenceException in NetworkConnectionManager.cs when PlayerPrefab is not assigned

2 participants