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
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
Add comment