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
- "Create Empty Child" Option Creates Root Object When No Parent Is Selected
- Freeze/Crash when entering Play Mode in a specific project
- Lack of documentation regarding VFX Ray Tracing support
- Shader properties do not appear on the GameObject when switching ShaderGraphs during runtime in the Player
- Multiple '-' symbols are allowed to appear in a row when inputting '.' into a non-decimal numeric field
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).