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
- 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
Add comment