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
- AI Assistant upgrade banner's `Open package Manager` link doesn't work
- Sub-asset UI does not refresh when undoing Renderer Feature add or remove actions in a URP Renderer asset
- Scene flickers with a green tint when using Screen Space Ambient Occlusion and Contact Shadows with raytracing
- Scripts with null Components on GameObjects are not removed when calling GameObjectUtility.RemoveMonoBehavioursWithMissingScript
- Color Curve Key values remain visible after changing Curve type
Add comment