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
- [MacOS] Can't clear text from text field when using Japanese IME on macOS
- Freeze or crash on MemoryProfiler::UnregisterAllocation when opening a specific Scene
- [Android] Application freezes when changing between materials on Mali G52 devices
- UI Builder performing Redo action for creating a nested element throws nvalid UXML or USS: System.IndexOutOfRangeException and corrupts the opened document causing data loss
- Element blocks another element when it is set to PickingMode.Ignore
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).