Search Issue Tracker
Fixed
Fixed in 2020.3.47f1, 2021.3.22f1
Votes
2
Found in
2020.3.33f1
2021.3.5f1
2022.1.6f1
Issue ID
UUM-1510
Regression
Yes
"NullReferenceException" error is thrown when entering the Play Mode with >=2 open Inspectors and Canvas GameObject is selected
How to reproduce:
1. Create a new Unity project
2. In the Scene add "Canvas" (GameObject->UI->Canvas)
3. Open the Inspector (Window->General->Inspector)
4. Open second Inspector (Right-click on the Inspector's tab->Add Tab->Inspector)
5. In the Hierarchy select the "Canvas" GameObejct
6. Enter the Play Mode
Expected results: No errors are thrown
Actual results: "NullReferenceException" error is thrown
Reproducible with: 2020.3.2f1, 2020.3.33f1, 2021.2.19f1, 2022.1.0b15
Not reproducible with: 2019.4.37f1, 2020.3.1f1, 2022.2.0b9
Full error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor\[] editors) (at <780782bc035845f9909cebbd4c983ae3>:0)
UnityEditor.PropertyEditor.RebuildContentsContainers () (at <780782bc035845f9909cebbd4c983ae3>:0)
UnityEditor.InspectorWindow.RedrawFromNative () (at <780782bc035845f9909cebbd4c983ae3>:0)
Comments (1)
-
synthc
May 03, 2022 20:33
This will happen for me when anything with a canvas renderer is selected, not just a Canvas object.
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note (fix version 2021.3.22f1):
The warning is not shown anymore. The problem is already resolved in newer versions thanks to better implementation of EditorActivityTracker lifecycle.
Resolution Note (fix version 2020.3.47f1):
The warning is not shown anymore. The problem is already resolved in newer versions thanks to better implementation of EditorActivityTracker lifecycle.