Search Issue Tracker
Fixed in 2022.2.X
Duplicate in 2021.3.X
Fixed in 2022.1.X
Votes
0
Found in
2021.1.17f1
2021.2.0b6
2022.1.0a2
2022.1.0a14
Issue ID
1376560
Regression
Yes
NullReference error is thrown when trying to delete an array element in the Inspector with "Delete" key
Reproduction steps:
1. Open the user's attached project
2. Open "Assets/Scenes/SampleScene"
3. Select GameObject "Test" from the Hierarchy
4. In the Inspector select one of the array items from the "Test Int" array
5. Press the "Delete" key on the keyboard
Expected result: Array item is deleted with no errors in the Console
Actual result: Console throw "NullReferenceException: : SerializedProperty is null" and "UnityEditor.SerializedProperty:get_depth ()" errors
Reproducible with: 2021.1.17f1, 2021.1.28f1, 2021.2.0b6, 2021.2.1f1, 2022.1.0a2, 2022.1.0a14
Not reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.1.16f1, 2021.2.0a1, 2021.2.0b5, 2022.1.0a1
Notes:
- it may take a few tries to reproduce the issue
- not reproducible with string, char or bool data type arrays
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a5