Copyright © 2026 Unity Technologies
2022.1 has reached end of life so the issue will be fixed in a newer version.
How to reproduce:
Expected result: No errors thrown/editor doesn't crash
Error:
ArgumentNullException: Value cannot be null. Parameter name: prefabInstance UnityEditor.PropertyEditor.ExtractPrefabComponents () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/PropertyEditor.cs:851) UnityEditor.PropertyEditor.OnTrackerRebuilt () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/PropertyEditor.cs:693) UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/PropertyEditor.cs:1805) UnityEditor.PropertyEditor.RebuildContentsContainers () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/PropertyEditor.cs:1010) UnityEditor.InspectorWindow.OnSelectionChanged () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:144) UnityEditor.Selection.Internal_CallSelectionChanged () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Selection.cs:37)
Reproduced with: 2022.1.0a15, 2022.1.11f1, 2022.2.0b11, 2023.1.0a12
Does not reproduce with: 2021.3.11f1, 2022.1.0a14
Issues you vote on will appear here