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
- [HDRP] Game view doesn’t refresh after changing Camera Background Type until mouse moves over it
- Some Shaders appear twice in Material Shader selection menu
- Editor freezes with a StackOverflowException when certain asset types are assigned to a managed component in a SubScene via AddComponentObject
- Scale Snapping with Gizmos does not work in the Scene view when Snapping and Absolute Grid Snapping are toggled off
- Text Script Importer Reference button links to a Missing Page when clicking the Reference Button in the Inspector
Add comment