Skip to content

fix: networklog can throw exception when no networkmanager exists#3917

Open
NoelStephensUnity wants to merge 5 commits intodevelop-2.0.0from
fix/networklog-can-throw-exception-when-no-networkmanager-exists
Open

fix: networklog can throw exception when no networkmanager exists#3917
NoelStephensUnity wants to merge 5 commits intodevelop-2.0.0from
fix/networklog-can-throw-exception-when-no-networkmanager-exists

Conversation

@NoelStephensUnity
Copy link
Member

@NoelStephensUnity NoelStephensUnity commented Mar 24, 2026

Purpose of this PR

The purpose of this PR is to resolve the issue where attempting to use NetworkLog when there is no NetworkManager instance would result in an exception.

Jira ticket

MTT-14743

fix: #3911

Changelog

  • Fixed: Issue where attempts to use NetworkLog when there is no NetworkManager instance would result in an exception.

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

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 required.

Fixing exception that could be thrown in NetworkLog if there is no NetworkManager instance.
Adding additional check in NetworkObject.OnNetworkBehaviourDestroyed to assure nothing is ever logged about destroying a NetworkBehaviour when shutting down and the NetworkObject is still considered spawned.
The test that validates the NetworkLog fix.
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner March 24, 2026 17:22
Adding change log entry for this fix.
@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) March 24, 2026 17:36
adding a single whitespace.
Adjusting a test for the updated network log header.
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.

Network Manager fails to spawn local NetworkObjects on client

1 participant