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
- Mouse input is registered incorrectly in Custom RP when downscaling Render Target and rendering Overlay UI before final upscale
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a3