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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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).