Search Issue Tracker
Fixed
Fixed in 2022.3.65f1, 6000.0.54f1, 6000.1.12f1, 6000.2.0b10, 6000.3.0a2
Votes
0
Found in
2022.3.64f1
6000.0.52f1
6000.1.10f1
6000.2.0b8
6000.3.0a1
Issue ID
UUM-110572
Regression
Yes
"NullReferenceException" error is thrown when attempting to add an element to an array or list named "Array" in the Inspector
How to reproduce:
1. Create and open a new project
2. Create a C# script with a serialized array named “Array”
3. Create an empty GameObject in the Hierarchy
4. Attach the C# script to the GameObject
5. Select the GameObject
6. In the Inspector, script component, expand the array
7. Click on the plus to the right of the array to add an element to it
8. Observe the Inspector and the Console
Expected result: A new element is added to the array, no errors are thrown
Actual result: Array contains no elements, an error is thrown in the Console
Reproducible with: 2022.3.64f1, 2023.1.0a26, 6000.0.52f1, 6000.1.10f1, 6000.2.0b8, 6000.3.0a1
Not reproducible with: 2021.3.53f1, 2023.1.0a25
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: An "NullReferenceException: Object reference not set to an instance of an object" error is thrown
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Up, Down and other Buttons in a Style Sheet's Inspector unselect items when they are clicked while they are disabled
- Virtual Player remains active and still launches when removed from Additional Editor Instances from a custom Play Mode Scenario
- UI Toolkit Editor Window Creator becomes not interactable and greyed out when a long name is entered
- [Web][iOS] Web Player keeps restarting on launch when Native C/C++ Multithreading is enabled
- "Add Scene to Scenes in Build" pop-up reappears after Scene has already been added and another Multiplayer Editor Instance is loaded
Add comment