Skip to content
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

Added null check in NetworkLatencyWarning #516

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

LPLafontaineB
Copy link
Contributor

Description (*)

This PR simply adds a check to prevent NullReferenceExceptions from happening when NetworkManager's singleton instance is destroyed.

Related Pull Requests

Issue Number(s) (*)

Fixes issue(s): Those NREs are observed in the log attached to MTT-2656 but I'm not sure if it's actually linked to the bug described there.

Manual testing scenarios

  1. Start hosting a game
  2. Quit the game using Alt-F4, Command-Q or the X on the window (not the one in the game)
  3. See that there are no NREs in the logs anymore

Questions or comments

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@LPLafontaineB LPLafontaineB added 2-Easy This PR is trivial and can be reviewed quickly 1-Needs Review PR needs attention from the assignee and reviewers GDC-cherrypick labels Mar 7, 2022
@fernando-cortez fernando-cortez added 2-One More Review One review in, one to go and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Mar 7, 2022
@SamuelBellomo SamuelBellomo added 3-Good to Merge and removed 2-One More Review One review in, one to go labels Mar 8, 2022
@LPLafontaineB LPLafontaineB merged commit 057bad5 into release/GDC2022 Mar 8, 2022
@LPLafontaineB LPLafontaineB deleted the fix/NRE-when-trying-to-quit branch March 8, 2022 14:28
SamuelBellomo added a commit that referenced this pull request Mar 8, 2022
…ocal

* release/GDC2022:
  Cherrypick: bigger floor tiles, bossroom.unity scene merge conflict resolved with unity merge tool (#519)
  Cherrypick: lobby visual rework, mainmenu.unity scene merge conflict resolved with unity merge tool (#520)
  cherrypick: Boss and run VFX Optimizations (#514) (#521)
  feat: loading screen (GDC version) (#495)
  fix: client writing to NetworkVariable inside ServerCharacterMovement (#517)
  fix: imps spawning issues when late joining (#497)
  Adding handling of host disconnect (#486) (#509)
  fix: NREs when trying to quit (#516)
  hack fix: disabling client side rate limiting for GDC, real fix should come on develop (#500)
  fix: NetworkAnimator being called on clients (#512)
  fix: username changing before game (#499)
  feat: IP connection window inside main menu (#502) (#508)

# Conflicts:
#	Assets/BossRoom/Scenes/Startup.unity
SamuelBellomo added a commit that referenced this pull request Mar 9, 2022
…I-stats

* release/GDC2022:
  lobby fix: Removing quit when lobby detects host left. (#505)
  Cherrypick: bigger floor tiles, bossroom.unity scene merge conflict resolved with unity merge tool (#519)
  Cherrypick: lobby visual rework, mainmenu.unity scene merge conflict resolved with unity merge tool (#520)
  cherrypick: Boss and run VFX Optimizations (#514) (#521)
  feat: loading screen (GDC version) (#495)
  fix: client writing to NetworkVariable inside ServerCharacterMovement (#517)
  fix: imps spawning issues when late joining (#497)
  Adding handling of host disconnect (#486) (#509)
  fix: NREs when trying to quit (#516)
  hack fix: disabling client side rate limiting for GDC, real fix should come on develop (#500)
  fix: NetworkAnimator being called on clients (#512)
  fix: username changing before game (#499)
LPLafontaineB added a commit that referenced this pull request Mar 9, 2022
Added null check in NetworkLatencyWarning

(cherry picked from commit 057bad5)
SamuelBellomo pushed a commit that referenced this pull request Mar 9, 2022
Added null check in NetworkLatencyWarning

(cherry picked from commit 057bad5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-Easy This PR is trivial and can be reviewed quickly 3-Good to Merge GDC-cherrypick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants