Search Issue Tracker
Fixed in 5.4.1
Votes
0
Found in
5.4.0f3
Issue ID
820528
Regression
No
Assigning a value to an element in a SyncListString that was previously null throws a NullReferenceException
Steps to reproduce:
1) Open the attached project.
2) Open scene 'Bug'.
3) Press Play.
4) Press 'Lan Host(H).
5) Press 'Set Element Random'.
An exception is thrown in the console:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Networking.SyncList`1[T].set_Item (Int32 i, .T value) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/SyncList.cs:444)
Player.CmdSetSomeStrings (System.String newValue) (at Assets/Player.cs:21)
Player.CallCmdSetSomeStrings (System.String newValue)
Player.OnGUI () (at Assets/Player.cs:42)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
- Mouse and Pointer Events are called incorrectly in ScrollView with XRUIInputModule
- Memory leak occurs when repeatedly minimizing and maximizing the UI Builder window
Add comment