Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
421 stars 161 forks source link

Fix NRE (NullReferenceException) #194

Closed cyraid closed 1 year ago

cyraid commented 1 year ago

This small little fix follows suit in the other places where connectionManager, and uses the null check ? connectionManager?.Connection.Close(); as other places do. This fixes the NRE (NullReferenceException) that happens after play mode on NetCode 1.2.0 it seems. :)

unity-cla-assistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.