Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2020.3
2020.3.19f1
2021.2
2022.1
Issue ID
1371833
Regression
No
NullReferenceException is thrown in Play mode when GO Properties window is open and the GO has certain Canvas Components
Reproduction steps:
1. Open the attached project ("1371833_22.1.0a16.zip")
2. Open "SampleScene"
3. Right-click Canvas in the Hierarchy window and select "Properties..."
4. Enter Play mode
Expected result: There are no errors in the Console window
Actual result: NullReferenceException is thrown:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/PropertyEditor.cs:1722)
UnityEditor.PropertyEditor.RebuildContentsContainers () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/PropertyEditor.cs:916)
UnityEditor.InspectorWindow.RedrawFromNative () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:175)
Reproducible with: 2020.3.23f1, 2021.2.4f1, 2022.1.0a16
Couldn't reproduce with: 2019.4.33f1 (no Properties window)
Notes:
1. In 2020.3.23f1 and 2021.2.4f1, the same GameObject or the Parent Canvas also needs to be selected in the Hierarchy window
2. In 2020.3.23f1 and 2021.2.4f1, the issue is not reproducible with Canvas, only GameObjects that have Canvas Renderer and a Component that depends on it
3. In 2022.1.0a16, the issue is reproducible with GameObjects that have a Canvas Renderer or a Canvas Component
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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a3