Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
netcode-gameobjects-1.12.2
2.2.0
Issue ID
MTTB-1116
Regression
No
Error "NullReferenceException: Object reference not set to an instance of an object" when checking client write permissions in NetworkList.cs
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/Home Screen.unity” Scene
3. Enter the Play Mode
4. Click the Button with the text “Create Lobby“
5. Enter anything in the Player Name field
6 Click the Button with the text “Create“
7. Observe the Console
Expected result: No Errors exists
Actual result: Error “NullReferenceException: Object reference not set to an instance of an object“ is present
Reproducible with: 1.12.2 (2022.3.60f1), 2.2.0 (6000.0.42f1, 6000.1.0b9, 6000.2.0a7)
Reproducible on:
Play Mode
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- "GetPreferedValue" returns max value when using auto-sizing
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
Resolution Note:
This issue revolved around the user's implementation and use of and allocation (under different contexts) of a static NetworkList. We will be adding additional notes to the documentation to specify that static NetworkLists and NetworkVariables are not supported as state updates for these need to be associated with a specific NetworkBehaviour, their assigned NetworkBehaviourId(s), and their associated NetworkObject(s).